Hi all
java.io.IOException: Bad file number appeared in the following function.
Any reason why this would happen. I have attached the log data from the app to show how long it took before this occurred, it then produced java.io.IOException: Out of memory error
Regards
John
java.io.IOException: Bad file number appeared in the following function.
B4X:
Sub com_listen
Dim d As Long
' // delay here for 1.5 seconds
d = DateTime.Add(DateTime.Now + (DateTime.TicksPerSecond * 1.5),0,0,0)
Do While d > DateTime.Now
DoEvents
Loop
Try
If Not(btCom.IsEnabled) Then
Log("com_listen() initialised")
btCom.Initialize("btCom")
End If
btCom.Listen
bCOMListening = True
Log(DateTime.time(DateTime.Now) & " Listening for Connection")
Catch
Log(DateTime.time(DateTime.Now) & " com_listen: " & LastException.Message)
StopService("")
End Try
End Sub
Any reason why this would happen. I have attached the log data from the app to show how long it took before this occurred, it then produced java.io.IOException: Out of memory error
Regards
John