Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

ComPort.Write problem

Help
2011-05-01
2013-04-30
  • i use ComPort.Write(PAnsiChar(p), Len); function to send binary data to microcontroller.
    If compiled with Delphi 2010 (D14) it works fine,
    but if the same code is compiled in Delphi 7 (with appropriate ComPort version installed), then Write function sends garbage. Only the byte count is correct, the data coming out of the port has absolutely no relation the the data sent. Checked with the same application compiled with Delphi 2010 and logic analyzer.
    I would rather use Delphi 7, because Delphi 2010 has a lot of errors and in my opinion is inferior to Delphi 7.
    Could this be fixed?

    Dmitri