[DUG] TComPort issue

Willie Juson willie.juson at satara.co.nz
Wed Mar 10 10:56:49 NZDT 2010


Hi,

 

Is anyone using the TComPort component set successfully with D2009/D2010?

 

We've been using it with no issues up until we upgraded to D2010. I've
downloaded the latest version of the TComPort library I can find (ver 4 beta
for D2010) and managed to get it installed ok then modified my program where
it handles the RXBuf event - the "Buffer" parameter has changed to a
PAnsiChar data type.

 

What happens now is the first time I load the form (from another form in my
application) and communicate with my device it works perfectly, however if I
close the form and reopen it then the "Buffer" PAnsiChar returned in the
event appears to be corrupted. If I completely close my app then restart it
then same thing, first time into the form it works fine, after that it's
corrupted.

 

An example of the "Buffer" output is...

 

First time in   OK00#13#10   (calibrating) and
OK00,040931,051754,018356#13#10 getting a reading.

 

Second time in  OK00#13#10Lo   (calibrating)  and
OK00,041o100,0521o06,01857o1#13#1001857o  getting a reading. Garbage is
added into the result.

 

Anyone got any ideas?

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20100310/7b0a6458/attachment.html 


More information about the Delphi mailing list