> ser.SendString('Invoice: The Galley Restaurant'+#13+#10);
> buf:=ser.RecvPacket(6000);

This is bad usage of RecvPacket. It reading all data in buffers, and 
if buffer is empty, then wait for some for max. 6 seconds. So, you 
never know, if it readed all what you need!

Use RecvString or RecvTerminated instead. (depending on communication 
protocol...)


-- 
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to