With Delphi 2010 + update 5 and Indy 10, I got an AV in TIdModBusClient.SendCommand in
Buffer := RawToBytes(SendBuffer, Swap(SendBuffer.Header.RecLength) + 6);
It's due to the fact that IOHandler is created only in "Connect", but If connect is nevel called (that's the case when "AutoConnect = false") then an exception will raise.
A small fix for this bug is attached.
Log in to post a comment.