Hi evreyone,
I've developped and application that comunicate with some devices through USB with virtual COM using jSerial library
I've a strange problem: when I try to open the COM the application close without errors.
Here the piece of code involved:
I use RedirectOutput function to redirect the log trace on file and on the log file I see as the last trace "OPENED PORT " with the correct COM name and nothing more. No trace of an eventual error catched by the Try/Catch. I've also a log trace in the Application_Error event, but no sign of it on the log file.
The strange thing is that in the IDE it works (on windows 10) , but the executable application has problem on another Windows 10.
I use this Java version for the executable
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
The same I've in the IDE.
Any hint is aprecieted.
Thanks
I've developped and application that comunicate with some devices through USB with virtual COM using jSerial library
I've a strange problem: when I try to open the COM the application close without errors.
Here the piece of code involved:
B4X:
Dim exc As ExceptionEx
Try
'objSerial object previously declared as Serial and inizialized by objSerial.Initialize("objSerial")
Log("CONNECT ON PORT " & mPort)
objSerial.Open(mPort)
Log("OPENED PORT " & mPort)
objSerial.SetParams(19200,8,1,0)
Log("PARAMETERS SET")
objAsyncStream.Initialize(objSerial.GetInputStream,objSerial.GetOutputStream,"objAsyncStream")
Log("ASYNCSTREAM OPENED")
If SubExists(objCaller,mEventName & "_Connected") Then
CallSubDelayed(objCaller,mEventName & "_Connected")
End If
Catch
Log("ERROR: " & LastException.Message)
exc = LastException
exc.Throw
End Try
Log("END CONNECTION PROCEDURE")
I use RedirectOutput function to redirect the log trace on file and on the log file I see as the last trace "OPENED PORT " with the correct COM name and nothing more. No trace of an eventual error catched by the Try/Catch. I've also a log trace in the Application_Error event, but no sign of it on the log file.
The strange thing is that in the IDE it works (on windows 10) , but the executable application has problem on another Windows 10.
I use this Java version for the executable
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
The same I've in the IDE.
Any hint is aprecieted.
Thanks