R
Robert Gravereaux
I've noticed that the first exception thrown/caught by an app running in
debug is very slow - it takes perhaps 7 or 8 seconds on my P4 machine. I've
noticed this on several different machines running the development
environment.
To replicate, create a new c# windows app, add a button, and hook it to the
following code:
private void btnException_Click(object sender, System.EventArgs e)
{
try
{
throw new ApplicationException("Exception!!!");
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
Run the app in debug (F5), click on the button, and wait about 5-10 sec. for
the message box to appear. Clicking a second time causes the message box to
appear immediately.
Can anyone tell me what's causing this, and is there a solution/workaround?
Thanks.
--
Rob Gravereaux
Principal Developer
Glen Road Systems, Inc.
(e-mail address removed)
http://www.grsinc.com
debug is very slow - it takes perhaps 7 or 8 seconds on my P4 machine. I've
noticed this on several different machines running the development
environment.
To replicate, create a new c# windows app, add a button, and hook it to the
following code:
private void btnException_Click(object sender, System.EventArgs e)
{
try
{
throw new ApplicationException("Exception!!!");
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
Run the app in debug (F5), click on the button, and wait about 5-10 sec. for
the message box to appear. Clicking a second time causes the message box to
appear immediately.
Can anyone tell me what's causing this, and is there a solution/workaround?
Thanks.
--
Rob Gravereaux
Principal Developer
Glen Road Systems, Inc.
(e-mail address removed)
http://www.grsinc.com