global application error handler

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!!
 
G

Guest

Jesse,

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

Kerry Moorman
 
J

Jesse Aufiero

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top