B4J Question JSerial and Raspberry Pi crash

techknight

Well-Known Member
Licensed User
Longtime User
I keep getting a crash of this:

B4X:
terminate called after throwing an instance of 'std::bad_alloc'

Sometimes after opening or closing the serial port.

Sometimes if the serial port is open, I do a send, then I do Astream.close, and Serial1.close, the app crashes with that error.

I cant seem to solve it. Any ideas?
 

techknight

Well-Known Member
Licensed User
Longtime User
Well its a Kiosk type thing so if the app terminates itll be because of a power loss or etc...

So, I think I will keep the serial port open.
 
Upvote 0
Top