Water-E:
ptmpYW 是个空指针当然出错了!在这里加上一句,这样运行结果应该还是0,因为showmessage的时候线程应该还没有执行,试试就知道了
[阅读: 467] 2005-01-19 06:28:13
constructor TMyThread.Create(Tmpyw:pyw);
begin
inherited Create(True);
FreeOnTerminate := True;
ptmpYW := Tmpyw;//加上这个=======
Resume;
end;
嘿嘿