catching exceptions from another thread

后端 未结 5 1412
名媛妹妹
名媛妹妹 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:57

    Use the BackgroundWorker class in the .NET framework instead. It is the best practice for performing UI work on a different thread.

提交回复
热议问题