D
dave cardnell
I have the following code in my app
Application.ThreadException += new
ThreadExceptionEventHandler(Application_ThreadException);
Application.Run(new TestFrm());
public static void Application_ThreadException(
object sender, ThreadExceptionEventArgs e) {
Console.WriteLine("fred");
}
However any uncaught exception, doesn't end up in the
handler. I can get it to work in a test app.
Any ideas ?
Application.ThreadException += new
ThreadExceptionEventHandler(Application_ThreadException);
Application.Run(new TestFrm());
public static void Application_ThreadException(
object sender, ThreadExceptionEventArgs e) {
Console.WriteLine("fred");
}
However any uncaught exception, doesn't end up in the
handler. I can get it to work in a test app.
Any ideas ?