How to Kill a C# Thread?

后端 未结 4 1278
抹茶落季
抹茶落季 2021-01-13 09:56

I\'ve got a thread that goes out and looks up data on our (old) SQL server.

As data comes in, I post information to a modal dialog box - the user can\'t & should

4条回答
  •  走了就别回头了
    2021-01-13 10:16

    What are you passing into your KillThread method? The cancel button will be being clicked on the UI thread, not the one that you want to kill.

提交回复
热议问题