CurrentDomain.UnhandledException doesn't catch Exceptions from other Threads?

  • Thread starter Thread starter james
  • Start date Start date
J

james

Hi all,

I have a console app that uses
AppDomain.CurrentDomain.UnhandledException. However it only seems to
catch exceptions in the current thread. Exceptions in other threads
(like from a timer) don't seem to get reported at all (and my
application keeps running). How do I catch unhandled exceptions in
other threads?

-James
 
Try this event as well:

Application.ThreadException += new
System.Threading.ThreadExceptionEventHandler(Application_ThreadException);

Eric
 
Try this event as well:

Application.ThreadException += new
System.Threading.ThreadExceptionEventHandler(Application_ThreadException);

Eric

I thought that was only for windows forms applications?
 
Back
Top