Cannot get C++ exceptions to work #2922
Unanswered
bastian2001
asked this question in
Q&A
Replies: 1 comment
-
I just did a quick test in the IDE with exceptions enabled and it is working, so this is either an unhandled exception type in your code (which will
Prints
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running the
std::stoll
function to convert a string to a 64 bit int (long long). Despite the fact that I have added-DPIO_FRAMEWORK_ARDUINO_ENABLE_EXCEPTIONS
and-fexceptions
(compiler told me to do so) to my build_flags, the MCU crashes when I provide this function with a non-number string. The catch should catch all possible exceptions. Any ideas?Beta Was this translation helpful? Give feedback.
All reactions