大
大愚
Unregistered / Unconfirmed
GUEST, unregistred user!
线程代码如下:
procedure TSendHandleThread.Execute;
begin
while not Terminateddo
begin
if not form1.Client.Connected then
Terminate
else
try
for con :=0 to DataQueue.Count-1do
begin
Synchronize(HandleInput);
// 通过IdTCPClient发送数据
DataQueue.Delete(0);
end;
except
end;
end;
end;
我想罪魁祸首就是"while not Terminateddo
"了,但我还是希望循环判断的功能,请高手指点.
procedure TSendHandleThread.Execute;
begin
while not Terminateddo
begin
if not form1.Client.Connected then
Terminate
else
try
for con :=0 to DataQueue.Count-1do
begin
Synchronize(HandleInput);
// 通过IdTCPClient发送数据
DataQueue.Delete(0);
end;
except
end;
end;
end;
我想罪魁祸首就是"while not Terminateddo
"了,但我还是希望循环判断的功能,请高手指点.