AppDomain.UnhandledException: Removing the default handler!

  • Thread starter Thread starter Martin Lapierre
  • Start date Start date
M

Martin Lapierre

How can I remove the default exception handler handler?
When adding a custom handler, I can't get rid of the VS.NET unhandled
exception dialog.

Ex:
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.UnhandledException += new
UnhandledExceptionEventHandler(MyHandler);

MyHandler gets called AFTER the default VS.NET unhandled exception handler
(even in Release versions).
 
I don't have worker threads. I tried what you said, but that handler isn't
called.

I just want to get rid of the jit debugger. There should be a way of
removing the default handler delegate from the registered events.
 
Back
Top