W
wishme1
Unregistered / Unconfirmed
GUEST, unregistred user!
我做发如下:
先在public中声明
ReSendThread:Thread;
formcreate时:
ReSendThread:=Thread.Create(DealData);
//建立线程
ReSendThread.Suspend;
//先挂起
procedure TForm1.Timer2Timer(Sender: TObject);
begin
ReSendThread.Resume;//恢复线程
end;
procedure DealData() //处理数据
begin
end;
先在public中声明
ReSendThread:Thread;
formcreate时:
ReSendThread:=Thread.Create(DealData);
//建立线程
ReSendThread.Suspend;
//先挂起
procedure TForm1.Timer2Timer(Sender: TObject);
begin
ReSendThread.Resume;//恢复线程
end;
procedure DealData() //处理数据
begin
end;