470,624 Members | 2,276 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,624 developers. It's quick & easy.

AppDomain.UnhandledException: Removing the default handler!


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).
Nov 15 '05 #1
2 4653
Are you catching Application.ThreadException as well???
"Martin Lapierre" <la*******@cedrom-sni.com> wrote in message
news:ed**************@TK2MSFTNGP09.phx.gbl...

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

Nov 15 '05 #2
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.

"Steven John Pack" <a@b.com> wrote in message
news:3f********@news.comindico.com.au...
Are you catching Application.ThreadException as well???
"Martin Lapierre" <la*******@cedrom-sni.com> wrote in message
news:ed**************@TK2MSFTNGP09.phx.gbl...

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


Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Marcio Izepe | last post: by
4 posts views Thread by Thom Little | last post: by
1 post views Thread by Kimmo Laine | last post: by
5 posts views Thread by John Richardson | last post: by
2 posts views Thread by guy | last post: by
3 posts views Thread by Tao | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.