[Lazarus] SdpoSerial Tx and Rx buffers?

Bo Berglund bo.berglund at gmail.com
Sun Feb 13 23:15:14 CET 2011


In serial components I have used with Delphi before there was always a
property to set the buffer sizes (both Tx and Rx). But I cannot find a
way to do this with SdpoSerial.
Is it not needed (does SdpoSerial manage the buffers by itself) or
have I overlooked some property? I have not installed SdpoSerial in
Lazarus as a component since it is non-visual. I create it in code
instead.

I am wondering about this because I am now reaching the point in my
project where I have to send large data arrays (up to 1 Mbytes) and I
am not sure if I have to check the transmit buffer before I submit the
data to the SdpoSerial.

What will happen if I have not set any buffer size (so they are at
default values, whatever that is) and then use the method 
  FComm.WriteData(cmd);
with cmd being a string containing 1 Mbytes of data?
(FComm is of course a TSdpoSerial instance)


Bo Berglund





More information about the Lazarus mailing list