Somehow I screwed something up. After initializing the async stream for serial port communications (see code below) the debugger immediately throws the following fatal error:
Program started.
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
when it executes the astream.Initialize
I do not know why this is all of the sudden happening? It was working. Is there a method to debug this?
From some generic web searching, the error seems to be related to memory allocation?
Don't know why this has occurred.
On my laptop, I get openjdk error, and on the raspberry pi I am running this on I get the above error.
Program started.
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
when it executes the astream.Initialize
starting an async serial port stream:
sp.Initialize("sp")
serial_port_name=sp.ListPorts.Get(0)
sp.Open(serial_port_name)
sp.SetParams(sp.BAUDRATE_9600, sp.DATABITS_8, sp.STOPBITS_1, sp.PARITY_SPACE)
astream.Initialize(sp.GetInputStream, sp.GetOutputStream, "astream")
I do not know why this is all of the sudden happening? It was working. Is there a method to debug this?
From some generic web searching, the error seems to be related to memory allocation?
Don't know why this has occurred.
On my laptop, I get openjdk error, and on the raspberry pi I am running this on I get the above error.