Try/Catch and threading

前端 未结 5 957
谎友^
谎友^ 2021-02-07 13:29

I have an idea why but I\'d like to ask if someone has a good grasp on why the exception raised inside a thread is never caught by the code that started it. Here\'s some very si

5条回答
  •  春和景丽
    2021-02-07 14:11

    Try adding this before your DoWork Sub

     _
    

    I'm using the background worker, and all the Try Catch in my loop work as you'd expect them to with this.

提交回复
热议问题