catching exceptions from another thread

后端 未结 5 1311
名媛妹妹
名媛妹妹 2020-12-13 21:38

I have a method running in a seperate thread. The thread is created and started from a form in a windows application. If an exception is thrown from inside the thread, wha

5条回答
  •  囚心锁ツ
    2020-12-13 21:53

    Probably a better way would be to pass a delegate into the thread instead of a reference to the form itself.

提交回复
热议问题