B4J Question jSerial initialization error

Beja

Expert
Licensed User
Longtime User
Hi all,

In the following code I tried to delete the prefix but I got a runtime error "Too many parameters"

B4X:
'astream.InitializePrefix(sp.GetInputStream, True, sp.GetOutputStream, "astream")
astream.Initialize(sp.GetInputStream, True, sp.GetOutputStream, "astream")

Any help in correcting the syntax appreciated.
 

Beja

Expert
Licensed User
Longtime User
put it more clear:
the above first line error log (with prefeix):
java.lang.RuntimeException: Message size too large. Prefix mode can only work if both sides of the connection follow the 'prefix' protocol.
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AIN.run(AsyncStreams.java:205)
at java.lang.Thread.run(Thread.java:745)

and when prefix deleted I got the error: "too many parameter"
 
Upvote 0
Top