Alex Rivera | Logout

AppDomain.CurrentDomain.UnhandledException not firing without debugging

Asked 2009-08-19T14:23:11.230
17

I have a .NET program with an event handler bound to Application.CurrentDomain.UnhandledException. When running the program with debugging, this event fires when an unhandled exception is thrown. However, when running without debugging, the event does not fire.

What is my problem?

Thanks, Andrew

Edit
Report

1 Answer

0

Maybe the exception is thrown within a separate thread in your application. We've seen the problem of an application just "stopping" (means: one second it's there, the other second it's gone) when an unhandled exception occurs within a thread. In that case, not even the unhandled exception handler got triggered.

answered 2009-08-19T14:37:55.530

Your Answer