global application error handler

  • Thread starter Thread starter Jesse Aufiero
  • Start date Start date
J

Jesse Aufiero

I'm using the built-in global UnhandledException event to handle errors in
my application, but when I call e.ExitApplication = True to kill the
application, the application disappears, but the process remains running.

I believe this is because i am using the backgroundWorker component to
constantly run calculations on a background thread, and that thread is not
being killed. If this is in fact the problem, I am unsure of how to kill
that thread when the UnhandledException event fires.

Any suggestions welcome. Thank you!!
 
Jesse,

Can you call the backgroundworker's CancelAsync method before killing the
application?

Kerry Moorman
 
hmm, well, i'm not sure how i'd get a hold of the background worker from
within the UnhandledException event.
 
Back
Top