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"

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

Any help in correcting the syntax appreciated.
 
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

Similar Threads

  • Question Question
B4J Question jSerial
Replies
1
Views
3K
  • Question Question
B4J Question jSerial issue
Replies
11
Views
5K
  • Question Question
Replies
2
Views
4K
Back
Top