AppDomain.UnhandledException: Removing the default handler!

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).
 
M

Martin Lapierre

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top