Tuesday, June 8, 2010

BackgroundWorker and Exception Handling

Working on a new product that had an Exception that is not being caught by the UnhandledExceptionHandler. The cause seems to be stated in this blog post. The solution is:

1. Do not put any Try-Catch logic in the background process
2. Test the RunWorkerCompletedEventArgs Error property, which is the Exception from the process.

No comments:

Post a Comment