1,593
社区成员
发帖
与我相关
我的任务
分享
procedure TbdComThread.Execute;
begin
{ Place thread code here }
FreeOnTerminate :=true;
While b_EnRead do
begin
if Terminated then Break ;
with frm_Main do
begin
if not IdTCPClient_MW100.Connected then
begin
try
frm_Main.IdTCPClient_MW100.Connect(5000);
b_Suc :=True ;
Synchronize(buildCom);
except
b_Suc:=False ;
b_EnSend :=True ;
Synchronize(buildCom);
IdTCPClient_MW100.Disconnect ;
end;
end;
end;
end;
end;