[Lazarus] Undefined value in SdpoSerial

Paulo Costa paco at fe.up.pt
Tue Nov 2 15:23:33 CET 2010

On 02/11/2010 07:20, Bo Berglund wrote:
> I am working on a serial communications class and I have been adviced
> to use the 5dpo component.
> But when I am writing the initialization part of my class I discovered
> that there is a field value defined and used that does not get an
> initialization value...

 From the source code:

constructor TSdpoSerial.Create(AOwner: TComponent);

> The flowcontrol is set by FSoftflow and FHardflow but there is no
> place in the 5dpo code where these fields are initialized to some
> valid value.
> And they are not exposed in a setter or getter either.
> Why?

     property FlowControl: TFlowControl read FFlowControl write 

FSoftflow and FHardflow are set/reset by flowcontrol and it is exposed.

Paulo Costa

More information about the Lazarus mailing list