TC官方合作论坛
标题:
线程关闭问题
[打印本页]
作者:
B哥
时间:
2012-12-16 21:23
标题:
线程关闭问题
就一个关闭子线程操作,为什么一关闭子线程,TC程序直接关闭了????
namespace CloseThreadTest
int runChartThreadhandle //子线程句陃
function bool start_click()
runChartThreadhandle = thread.beginthreadex("CloseThreadTest.runChart","","CloseThreadTest.cancellationRunChart","")
help.sleep(10000)
//-------------------- 关闭runChartThreadhandle线程,就到整个程序关了?什么报也不报,这是啥意思罗!!!!
thread.closethread(runChartThreadhandle)
return true
endfunction
//子线程
function bool runChart(string str)
help.messagebox("跑图线程被开始了!!!!!!!!!!!!!!!!")
while(true)
help.sleep(3000)
help.messagebox("角色在跑图中...")
endwhile
return true
endfunction
//结束子线程执行
function bool cancellationRunChart(string str)
help.messagebox("跑图线程被关闭")
return true
endfunction
function bool exit_click()
help.exit()
return true
endfunction
endnamespace
复制代码
----------郁闷坐等好心人!!!!
作者:
我是冰冻的番茄
时间:
2012-12-16 22:03
B 哥 你好,B哥再见,
作者:
B哥
时间:
2012-12-16 23:44
结贴:神奇的: CloseThreadTest 神奇的TC!
欢迎光临 TC官方合作论坛 (http://bbs.52tc.co/)
Powered by Discuz! X3.1