How to force the program to continue after unhandled exception detection
- From: nano2k <adrian.rotaru@xxxxxxxxxxx>
- Date: Fri, 7 Mar 2008 14:11:27 -0800 (PST)
Hi
For my winforms app (.net 2.0) I have defined a general exception
handler:
Application.ThreadException +=
new
System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
//....
void Application_ThreadException(object sender,
System.Threading.ThreadExceptionEventArgs e) {
//show a decent message
}
Ok, the thing is that when in debugging mode and an unhandled
exception occurs, the exception helper pops up.
On this point, I'm stucked. Can't get rid of exception helper, even if
I want the exception to be handled by the general exception handler I
defined.
I have played with exception settings (CTRL-D, E), but no luck.
I really need to keep this design, so I need to be able to let the
program to continue execution.
How to do this?
Thanks.
.
- Follow-Ups:
- Re: How to force the program to continue after unhandled exception detection
- From: Peter Duniho
- Re: How to force the program to continue after unhandled exception detection
- Prev by Date: Want to avoid the Web.UI.Page lifecycle for Ajax requests
- Next by Date: More about iterator
- Previous by thread: Want to avoid the Web.UI.Page lifecycle for Ajax requests
- Next by thread: Re: How to force the program to continue after unhandled exception detection
- Index(es):
Relevant Pages
|