I keep getting this everytime the Asyncstreams_error sub is called:
java.lang.RuntimeException: Object should first be initialized (Exception).
My code is:
B4X:
Sub AStreams_Error
ToastMessageShow("Dropped connection to server. Reason: " & LastException.Message, True)
Astreams.Close
Socket1.Close
Connected = False
End Sub
Something is not initialized... Sub Astrems Error is made for that, when something is wrong with astrems related code, I dont think that you will get any other help from other members with just posted code above.
Good luck
Well the code works. That much I do know. But I changed servers and having a weird problem with the server, So i need to find out why my Socket is getting booted. So I decided to add the LastException, Boom crash.