[Lazarus] Serial communication??

Michael Schnell mschnell at lumino.de
Wed Sep 29 13:06:04 CEST 2010

  On 09/28/2010 10:40 PM, Felipe Monteiro de Carvalho wrote:
>   About threading one can use TThread which is cross-platform
Doing the communication completely in a TThread is doable just with 
same. But in the end you need the data in the main thread. Here you need 
thread synchronization which is not (perfectly) cross-platform.

AsyncPro fires all it's events in the main thread, so the user 
programmer does not need to bother with threads and thread 
communication. The threads are just internal in AsyncPro. Thus (provided 
same does works correctly) the user pert is inherently thread safe, The  
perfect "Object-Pascal" way to handle serial (and TCP/IP) communication.


More information about the Lazarus mailing list