Exceptions thrown in another thread. RRS feed

  • Question

  • Is the following politically correct ?

    1) Master UI Thread issues BeginInvoke on a delegate
    2) Master UI continues to handle user interaction
    3) Sub thread throws an exception
    4) Sub thread catches exception.
    5) Subthread invokes delegate on Master UI passing SomeException as a parameter
    6) This delgate throws MyDelegateException passing additional info (previous SomeException)

    If this structure is wrong, how would you recommend doing it.
    Monday, January 14, 2008 2:25 PM


  • Your program logic sounds very well.

    By the way, you can check log any exceptions thrown in the appdomain's event handler AppDomain.UnhandledException.
    Wednesday, January 16, 2008 3:14 PM