C#智能项目(也就是wince),调用线程后,关闭系统,老是不能完全关闭
问题在于:使用了线程,在closed里写线程暂停,然后使用ExitThread,提示没有这个函数,请问有没其他办法让 程序完全退出
//线程定义
public Thread th1;
th1 = new Thread(new ThreadStart(th_run));
th1.Start();
//窗口的closed事件增加
th1.Abort();
Application.ExitThread();//这个会报错,应该是c#智能项目没有这个函数
//把这个屏蔽掉,但是系统还是不能完全退掉,请教下什么方法才能处理这个有线程的程序,完全结束程序