View attachment 110031
This warning does not cause the application to stop.
But it fails to catch the error for treatment using try catch.
This warning appears when the astream is closed.
This warning appears even though the serial port is not receiving data or sending data.
Log("astream.Close")
astream.Close
Sleep(1000)
Log("Serial1.Close")
Serial1.Close
It seems that this warning is not considered an error, so it is not caught with these subroutines:
Sub AStream_Error
Log("AStream_Error")
Log(LastException)
End Sub
Sub AStream_Terminated
Log("AStream_Terminated")
End Sub
Does anyone know how to prevent this error from appearing in the LOG?
Reference:
[B4X] AsyncStreams Tutorial