On 09/02/2011 22:10, Bo Berglund wrote:
I have used SdpoSerial as the RS232 handler in a class which is used
in a test application.
In this I create the SdpoSerial component in code in the constructor
of my class like this:
 ...
I keep track of various communication states in the FCommState
variable (it is indicating the state in a state machine).

The problem I have is that even though I open a non-existing port the
SdpoSerial does not indicate this. Following the Open method Active is
true even though a completely bogus port number has been given!

Why is this and how can I fix it?
I need to know if the port is actually working or not....


Hi,


Two things:

a) if possible post a compilable (even better runnable) example. There are some detail missing that could hold the reason for your trouble. What leads me to...

b) have you redefined "Active" in your class and it is hiding the TSdpoSerial active property?

Paulo Costa

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to