有关线程停止的帮助. [英] help regarding Thread stop.

查看:74
本文介绍了有关线程停止的帮助.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我正在使用vb.net 2008和发展基于winCE的应用程序.我已经启动了一个线程,现在我无法停止.它不允许我使用thread.abort()方法,那么如何解决这个问题呢?
需要紧急帮助.

hi all
I m using vb.net 2008 and devloping winCE based application. I have started a thread and now i cant stop. Its does not allowed me for thread.abort() method so How to salve this problem ?
Urgent help needed.

推荐答案

从理论上讲,您永远不需要使用thread.abort()杀死线程. 这就是thread.abort()引发异常的原因. 线程在退出其主过程时将终止.
In theory you should never need to kill a thread with thread.abort()
That is why thread.abort() throws an exception.
The thread will terminate when it exits its main procedure.


这篇关于有关线程停止的帮助.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆