Re: anyone experinced with Dejan Crnila's ComPort?

From: Ivo Bauer (bauer_at_ozm.cz)
Date: 10/31/03


Date: Fri, 31 Oct 2003 12:11:27 +0100

Hi Andrew!

"Andrew S. Vaz" <andrew_s_vaz@nospam_yahoo.com> pí¨e v diskusním príspevku
news:MPG.1a0a9924ecb418dc989682@newsgroups.borland.com...
> It can work in Sync and Async modes, but witch one's better? If I use
Sync, everything will stop
> untill it answers back. If I work in Async mode I'll have to watch out for
code re-entrancy
> and all the things that can happen while waiting for an answer if it got
the job done or not.

Simply said, if you intend to use the comport from the main VCL thread, use
async mode to make your application always responding to the user input. On
the other side, if you prefer to encapsulate your low level serial i/o stuff
in a separate background thread, then sync (blocking) mode is for you.

To get in touch with more comport users, you may want to visit the forum at
http://forums.delphiforums.com/comportlib/start

Best regards,
Ivo