Re: Capture unhandled exception

From: Rodger Higgins (rhiggins_at_earthling.net)
Date: 04/29/04


Date: Thu, 29 Apr 2004 07:52:59 -0500

Sorry, probably should have gave more information. I would like to
implement a system wide monitor that captures any unhandled exceptions
and performs error recovery. This would need to capture exceptions
irregardless of where they occurred. My assumption was the
__try/__except only work in the context of a particular program, correct?

Michael J. Salamone [eMVP] wrote:

> __try/__except? Or, a debugger program (either PB IDE debugger or roll your
> own). Of course, either method can actually handle the exception, making it
> not unhandled ;)



Relevant Pages

  • Re: ApplicationException unhandled by user code
    ... any unhandled exceptions thrown by your application so that your ... program doesn't terminate or just so that you can handle the errors ... public void ApplicationThreadException(object sender, ... That should let you catch all your exceptions, and in .Net 1.1, it ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Unhandled exception in class library
    ... Replacing the standard Microsoft "process terminating" dialog with one's own doesn't seem to add any real value for the user. ... I thought the ThreadException was to catch exceptions in background threads, but apparently I'm wrong about that? ... They are events that are raised when unhandled exceptions occur. ...
    (microsoft.public.dotnet.framework)
  • Re: Unhandled exception in class library
    ... Replacing the standard Microsoft "process terminating" dialog with one's own doesn't seem to add any real value for the user. ... I thought the ThreadException was to catch exceptions in background threads, but apparently I'm wrong about that? ... They are events that are raised when unhandled exceptions occur. ...
    (microsoft.public.dotnet.framework)
  • Re: ASP.NET Error redirect then use Back button (or programmed button)
    ... and handle theerroras appropriate. ... web.config is set up toredirectthe user to anerrorpage. ... there wouldn't be any unhandled exceptions so the setting would be ... are therefore some unhandled exceptions, how can I prevent them from ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: getting a stack trace from a c++ exception
    ... It also wrks for *all* unhandled exceptions. ... > It will work only if the application installed a custom filter for ... The CRT uses his own Exception-Filter which chooses what to ...
    (microsoft.public.vc.language)