谢谢,还有一个问题。 调试到这的时候总提示: Acess violation at adress 0051B012 in module '我的程序名' Read of address 00000004 process stopped 这是怎么回事 iExitCode:=0; GetExitCodeThread(TRA.Handle, iExitCode);//提示错误处 IF iExitCode=STILL_ACTIVE THEN BEGIN TRA.Suspend; END; 是不是由于线程还没执行就进行状态判断的原因
调试到这的时候总提示:
Acess violation at adress 0051B012 in module '我的程序名'
Read of address 00000004 process stopped
这是怎么回事
iExitCode:=0;
GetExitCodeThread(TRA.Handle, iExitCode);//提示错误处
IF iExitCode=STILL_ACTIVE THEN
BEGIN
TRA.Suspend;
END;
是不是由于线程还没执行就进行状态判断的原因