Am trying to use the project found here, I have made some modifications and the code works okey, but sometimes it throws the below error. How can I suppress or handle that error message in code, as it stops logic flow from continuing untill the button is pressed manually
after debgugging abit, I can find the error is thrown in a delete
line, it tries to delete a pointer and it prints std::bad_alloc
then hangs