On 10/09/2010 11:33 PM, Bo Berglund wrote:
while FComm.TxWaiting> 16 do
begin
Application.ProcessMessages;
Sleep(1);
end;
Doing a busy loop for waiting on a serial port action is not good at
all. You should use main-thread events fired by the serial unit for
this. AsyncPro does a good job providing those.
-Michael -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
