.NET Backgroundworker - Is there no way to let exceptions pass back normally to main thread?

Posted by Greg on Stack Overflow See other posts from Stack Overflow or by Greg
Published on 2010-03-29T00:16:01Z Indexed on 2010/03/29 0:23 UTC
Read the original article Hit count: 710

Filed under:
|
|

Hi,

QUESTION: Re use of .NET Backgroundworker, is there not a way to let exceptions pass back normally to main thread?

BACKGROUND:

  • Currently in my WinForms application I have generic exception handle that goes along the lines of, if (a) a custom app exception then present to user, but don't exit program, and (b) if other exception then present and then exit application
  • The above is nice as I can just throw the appropriate exception anywhere in the application and the presentation/handling is handled generically

© Stack Overflow or respective owner

Related posts about .NET

Related posts about winforms