B
beamgx
Unregistered / Unconfirmed
GUEST, unregistred user!
各位大哥:
请问为什么这东东启动后CPU占用率就成了100%?
代码如下:
svrs: TIdUDPServer;
svrc: TIdUDPClient;
procedure Tservice1.ServiceExecute(Sender: TService);
begin
try
svrc.Active :=true;
svrs.Active :=true;
while not terminated do;
finally
svrc.Active :=false;
svrs.Active :=false;
end;
end;
请问为什么这东东启动后CPU占用率就成了100%?
代码如下:
svrs: TIdUDPServer;
svrc: TIdUDPClient;
procedure Tservice1.ServiceExecute(Sender: TService);
begin
try
svrc.Active :=true;
svrs.Active :=true;
while not terminated do;
finally
svrc.Active :=false;
svrs.Active :=false;
end;
end;