If connection is closed from network problem, I have a lot of exceptions in the following line:
File: TMS.MQTT.Connection, line 267
if FIdTcpClient.Socket.InputBufferIsEmpty then
that it is called from file TMS.MQTT.Client.Threading line 548
// check if we have incoming data:
while (FConnection.HasData) do
Is it possible to ckeck state and validity of object before trying to access it?
The stack follows:
Exception OS: 20230131 06475525 # EXCOS EAccessViolation (c0000005) [] at 013028d5
TMS.MQTT.Connection.pas TTMSMQTTNetworkConnection.HasData (267)
TMS.MQTT.Connection.pas TTMSMQTTNetworkConnection.HasData (286)
TMS.MQTT.Client.Threading.pas TTMSMQTTReaderThread.Work (548)
TMS.MQTT.Client.Threading.pas TTMSMQTTWorkerThread.Execute (636)