Click here to Skip to main content
15,887,332 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Need help generating tree structure. Pin
Ritesh12349-Jan-05 23:28
Ritesh12349-Jan-05 23:28 
GeneralConverting a HEX value to a DateTime Pin
Stanimir_Stoyanov7-Jan-05 0:18
Stanimir_Stoyanov7-Jan-05 0:18 
GeneralRe: Converting a HEX value to a DateTime Pin
Mike Dimmick7-Jan-05 2:30
Mike Dimmick7-Jan-05 2:30 
Generalwhich testing tool is better Pin
montu33776-Jan-05 23:08
montu33776-Jan-05 23:08 
GeneralCompiling VC++ application on VC7 Pin
_Tom_6-Jan-05 2:18
_Tom_6-Jan-05 2:18 
GeneralAdvice needed for how to use XML DOM Pin
John Guin5-Jan-05 7:19
John Guin5-Jan-05 7:19 
GeneralRe: Advice needed for how to use XML DOM Pin
Charlie Williams6-Jan-05 5:40
Charlie Williams6-Jan-05 5:40 
GeneralInfuriating, Costly Exception Handling Delay Pin
JMPurcell4-Jan-05 18:53
JMPurcell4-Jan-05 18:53 
I'm experiencing a problem in Visual Studio.NET 2003 7.1.3088 w/.NET Framework 1.1 SP-1 that is causing me to lose several hours of development time each week.

When running in my development environment, the first thrown exception causes my application to stop responding for 32-33 seconds. All subsequent exceptions thrown during an application run cause absolutely no delay. An example of code that will cause this problem is:

int z = 0;
int i = 1 / z;

However, the following code will never cause a delay:

throw new Exception("New Exception");

During the entire period that my application is frozen, devenv.exe is hogging 48-50% of my CPU cycles, according to Task Manager. (The other 50-52% is listed as idle.) As soon as this number drops to 0, my application resumes.

A tiny test project demonstrating everything detailed here, with timer code, is available at http://bladetechnologies.us/Files/ExceptionTest.zip.

Googling this madness reveals that many others have experienced "first exception delays" of 2-5 seconds, and that a couple of developers have even seen delays of 10 seconds, but I've read of no one who's approached half a minute. Additionally, reports indicate that with everyone else, the delay does not appear when running the application in Release mode in the development environment, only in Debug mode. In my case, the problem occurs in both modes. When I run the .exe outside of the development environment, however, the problem disappears. Unfortunately, that doesn't help me when debugging.

I'm running Win XP Pro SP-2 on a clean, well-maintained, less-than-six-month-old HP Pavilion zx5000 notebook, with a 3.4 GHz HT P4 CPU, 1 GB RAM, and plenty of HD space.

I'm desperate. Any suggestions will be greatly appreciated.

Jason M. Purcell
Blade Technologies
GeneralRe: Infuriating, Costly Exception Handling Delay Pin
JMPurcell6-Jan-05 8:14
JMPurcell6-Jan-05 8:14 
GeneralRe: Infuriating, Costly Exception Handling Delay Pin
Rob Graham6-Jan-05 9:41
Rob Graham6-Jan-05 9:41 
GeneralRe: Infuriating, Costly Exception Handling Delay Pin
JMPurcell6-Jan-05 11:36
JMPurcell6-Jan-05 11:36 
GeneralRe: Infuriating, Costly Exception Handling Delay Pin
Colin Angus Mackay7-Jan-05 0:04
Colin Angus Mackay7-Jan-05 0:04 
GeneralRe: Infuriating, Costly Exception Handling Delay Pin
JMPurcell7-Jan-05 7:52
JMPurcell7-Jan-05 7:52 
Generalserial com port communication! Pin
Member 16267074-Jan-05 12:11
Member 16267074-Jan-05 12:11 
GeneralRe: serial com port communication! Pin
Ritesh12347-Jan-05 3:27
Ritesh12347-Jan-05 3:27 
GeneralXML encoding losing special Characters Pin
kikilala4-Jan-05 10:19
kikilala4-Jan-05 10:19 
GeneralPocket PC Application Pin
vksrisridhar4-Jan-05 1:29
vksrisridhar4-Jan-05 1:29 
QuestionWinForms Form with a Win32 Window as a Parent? Pin
Uwe Keim3-Jan-05 2:28
sitebuilderUwe Keim3-Jan-05 2:28 
AnswerRe: WinForms Form with a Win32 Window as a Parent? Pin
Uwe Keim3-Jan-05 18:50
sitebuilderUwe Keim3-Jan-05 18:50 
GeneralRedirecting Mails from one domain to another in Exchange server Pin
Ashutosh j2-Jan-05 20:41
Ashutosh j2-Jan-05 20:41 
GeneralRe: Redirecting Mails from one domain to another in Exchange server Pin
Mike Dimmick6-Jan-05 12:59
Mike Dimmick6-Jan-05 12:59 
Generalencapsulate a program Pin
Anonymous2-Jan-05 3:23
Anonymous2-Jan-05 3:23 
GeneralRe: encapsulate a program Pin
zagzagzag3-Jan-05 1:04
zagzagzag3-Jan-05 1:04 
General.NET Pocket Framework Pin
zagzagzag1-Jan-05 11:55
zagzagzag1-Jan-05 11:55 
GeneralRe: .NET Pocket Framework Pin
Robert Rohde1-Jan-05 20:40
Robert Rohde1-Jan-05 20:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.