Scott Dorman's Q&A profile
.NET Development Help!My program sometimes can't exit normally
when click X or other exit entry, OS asks user to report error to MS, I can't find any error, when use windbg, it report: Unknown exception - code c0020001 (first chance) Does anybody have the same problem and solve this problem If you application is a .NET 2.0 application and you are running it on a machine with .NET 2.0 installed, then the Watson report might be of interest. When prompted for "Send this error report to Microsoft", there is a special link to see what does the report contain. Click it If your OS is windows XP/2003, you will see a dialog . At the top of the dialog , you will see a box titled error signature. What is the value in the P9 bucket, It should generally be Managed exception of some kind. On Vista, y ...Show All
Software Development for Windows Vista CPU Usage more then 50% all the time!
All, I created a very simple workflow and has only a delay activity. One thing I noticed whenever I start my console application, CPU goes up to 50% and stays up untill I close the application. It stays constent 49-50% even when I dont have any instance running. Has anybody experienced that TIA TIA, I could not repro this when running a 15 delay. If you run this within the VS Designer, I can see this. However, if you run this within a CMD window from the cmd line. the CPU does not appear to increase. ...Show All
Windows Live Developer Forums If the zoomlevel increase by 1, how much the magnifying times increase in Microsoft virtual earth map?
If the zoomlevel increase by 1, how much the magnifying times increase in Microsoft virtual earth map I appreciate your help. from: http://www.viavirtualearth.com/vve/Articles/WorldWind.ashx zoom level / meters per pixel 01 78271.52 02 39135.76 03 19567.88 04 9783.94 05 4891.97 06 2445.98 07 1222.99 08 611.50 09 305.75 10 152.87 11 76.44 12 38.22 13 19.11 14 9.55 15 4.78 16 2.39 17 1.19 18 0.60 19 0.30 John. ...Show All
SQL Server Time Series, incorporating future input data for prediction
Hi, I've got a time series of the number of new customer subscriptions, which is the target attribute to predict. The number of subscriptions depends on various marketing activities, such as mailings, which are known within the time series for the past. If I train an ART (MS Autoregression Tree), it learns the trend pattern as well as the correlations between the marketing activities and the target (cross-correlations), right What I would like to do is, providing the model with some marketing activity planning for the future and let the model predict the number of new subscriptions based on a) the past trend pattern and b) the future activities. Unfortunately a time series algorithm does not provide some kind of scoring for inpu ...Show All
Visual Basic Dataset InserAt
Hello, I am attempting to insert a new row into my database into a particular row location. I use the following code. dim newrow as datarow = me.testdataset.test_table.newtest_tablerow newrow("ID") = "33" newrow("CAB") = "44" me.testdataset.test_table.rows.insertAT(newrow, 3) Now, if I check the contents of row 3, ID does = 33. However, once this information is updated and sent to the database file via the tableadapter.update command, the row is placed at the bottom of the table. Why is that Any help would be great Thanks, - Edward Also remember that the dataset is an in-memory data structure and IS NOT the same as the data storag ...Show All
Windows Forms Windows Forms Parking Window
I have a System Tray icon application that is causing my shutdown to hang. I have ShowInTaskbar = False set, but I still see this icon in the Alt-Tab window. I think this is the problem... When I go to shut down, I get this "Windows Forms Parking " window message inside the "end task" window that popsup (but it doesn't time out and force a kill of&n ...Show All
Audio and Video Development Does iHD Simulator support the Network API?
I wanted to test some elements of the network API - specifically reading an xml document over http. Does the current iHDSimulator support this Also, how far away is the next release of the sim I think the current simulator's support is patchy at best. I'm afraid I don't have any news to report re: release dates of newer versions, but I have been working on networking code for a week or so now so by the time it ships I should have a pretty comprehensive set of content for my blog. ...Show All
SQL Server SQL Configuration settings being ignored?
I am sure I'm being blind here (it wouldn't be the first time - and won't be the last time). I have a package that retrieves some values from SQL table to allow me to dynically create an email message, so it retrieves To Addresses, From Address, Header, Body from a table, populates variables, and uses expressions to assign those to the SEND MAIL TASK. That is working (after a bit of head/wall/banging to get my default virtual SMTP server running locally). Now I am trying to make the SMTP Server Name dynamic. The Property SMTPConnection specifies the SMTP Connection Manager to use, and not the server, so it doesn't seem as though I can configure a property on the SEND MAIL TASK to achieve this. Now I'm focussing on using SQL Package Configu ...Show All
Visual C# C# Date Time Help
Ok I am writing this program to log me into WoW at a sertain time set by the user, but right now it won't work. My question is how can I get it to continually check against the current time and then fire the process when they are equal right now the way it is I just get a Not responding error in Task manager with it. [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; /* NoWait V1.0.0 by TRTwiggy * * Date: October 22, 2006 * * Author: TRTwiggy AKA Tyler Reid * * Description: This program was written for two reasons. The first is to help * develop my coding skills. The second is that I got so damn tired of get ...Show All
Audio and Video Development Controlling the starting video
I want to take my test and alter it so that it starts with a background image and buttons, but the video does not start playing until requested via a button. How do I prevent the video from playing from start up Although iHDSim works with no A/V, the spec requires it. So you should have (eg) a 10-second clip of just blackness, and then you can either: Have the video loop on itself Pause the video as soon as it starts (either by a script or by a Scheduled Pause event) and over-ride the play / FF / etc. keys so that the don't do anything ...Show All
Visual Studio Team System Mark an iteration complete?
This seems like a really simple task, but I can't see how to mark an iteration complete. I don't want to delete it of course, and loose the project data to that iteration, but I don't want it to be an option for new work items. So how do I mark an iteration complete so it can't get new work items, yet remains in the reports There is no way to mark an iteration complete. I'm assuming what you are asking for is a way to mark the iteration "inactive", which means that it can no longer be selected when creating/editing work items, but existing work items assigned to that iteration retain the original value ... for reporting/querying. Correct This is something we are looking at for a future rel ...Show All
.NET Development How to avoid hard-coded path to 3rd party DLL in C# DllImport?
How can I avoid a hard-coded path to a 3rd party DLL in C# DllImport I can’t put the 3 rd party DLLs in my application directory. I can’t put them in the %SystemRoot% directory. I must not hard-code a path to the DLLs. [ DllImport ( @"C:\Program Files\ABBYY FineReader Engine 8.0\Bin\FREngine.dll" , CharSet = CharSet .Unicode), PreserveSig ] private static extern uint GetEngineObject( String devSN, String reserved1, String reserved2, out IEngine frEngine ); Hmm, I'm guessing that you are trying to get your application working on a machine with limited permissions Would it be possible for you to, ...Show All
Windows Forms Transfer to child
I've been messing around and searching for a few days and still haven't found what I've been looking for. I have an application (Form1) that opens up another window (Form2) on a click of a button. I need to be able to get what the user clicked in Form1, into a texbox on Form2. Like: Storage = System::String::Format(treeView1->SelectedNode->Text->ToString()); I need to share 'Storage' with both forms. Is there a way I can do this Thanks. You can use a class to pass the data and make an event in Form2 that will listen for the data to change or however would suit your need. In this line: Storage = System::String::Format(treeView1->SelectedNode->Text->ToString()); Should be: String^ St ...Show All
SQL Server Trigger Question
Does anyone know how to capture the name of the procedure that invokes a trigger from inside of the trigger I would like to be able to do it without having to change any procedure code, if possible. It seems like there would be a way to do it in 2005 using DMVs, but I haven't figured it out yet. Thanks, Tim Nope, I don't think there is a reasonable way to do this. You could use SET CONTEXT_INFO to set the name of a proc when it is called, or a table to contain the stack of things being called along with a spid, but it really is way more trouble than it is worth. ...Show All
Visual Studio 2008 (Pre-release) ShowDialog question
Hey all: I need some help in figuring out how the ShowDialog method works in WinFX. In the code below, I have a loop that shows a Window called Login as a Modal dialog using the ShowDialog method. If the model returns a DialogResult of false, then the code loops and shows the login form again. The problem is that when the code loops, even though ShowDialog is called again, the code is not blocked and continues to execute. Any ideas why Do I need to reselt the dialog result for some reason Thanks Devin bool done = false; Login login = new Login(); while (!done) { //show the login form Nullable<bool> result = login.ShowDialog(); if (result.HasValue) { ...Show All
