在c#win中正确杀死一个帖子。形成 [英] Kill a thread properly in c# win. form
本文介绍了在c#win中正确杀死一个帖子。形成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何正确杀死工作线程。我试过了
How to kill a working thread properly. I tried
Thread.Abort();
和
And
Thread.Interrupt();
Thread.Abort();
但这都不起作用。任何我出错的建议都会有所帮助。
but none of this work. Any suggestion where i am going wrong will be helpful.
推荐答案
参考:
http://stackoverflow.com/questions/12894503/windows-form-application-thread-wont-stop [ ^ ]
杀死应用程序打开的所有线程 [ ^ ]
这可能有帮助
Refer:
http://stackoverflow.com/questions/12894503/windows-form-application-thread-wont-stop[^]
Killing all threads that opened by application[^]
This may help
检查以下链接,我想你会得到一些相关信息
http://msdn.microsoft.com/en-us/library /7a2f3ay4.aspx [ ^ ]
check the below link and i think u will got some relevant information about it
http://msdn.microsoft.com/en-us/library/7a2f3ay4.aspx[^]
阅读本文
http://msdn.microsoft.com/en-us/library/7a2f3ay4(v = vs.90).aspx [ ^ ]
检查这个类似的主题如何杀死C#中的一个帖子 [ ^ ]
Read this
http://msdn.microsoft.com/en-us/library/7a2f3ay4(v=vs.90).aspx[^]
check this similar thread how to kill a thread in C#[^]
这篇关于在c#win中正确杀死一个帖子。形成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文