S
sanlanggugu
Unregistered / Unconfirmed
GUEST, unregistred user!
以下例子有异常: managethread为随便的一个线程(即使线程没有执行什么都可以)
unit2为线程单元 挂起的时候为什么错误哦
uses unit2;
var
thread1:managethread;
procedure TForm1.FormCreate(Sender: TObject);
begin
thread1:=managethread.Create(true);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
thread1.Resume;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
thread1.Suspend;
end;
挂起的时候为什么错误哦
unit2为线程单元 挂起的时候为什么错误哦
uses unit2;
var
thread1:managethread;
procedure TForm1.FormCreate(Sender: TObject);
begin
thread1:=managethread.Create(true);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
thread1.Resume;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
thread1.Suspend;
end;
挂起的时候为什么错误哦