What happened if the exception is not fixed?

I am not asking for an unexpected exception, but an exception that is not being written.

Crashed? Or discontinued?

+3
source share
2 answers

According to §15.3 / 9:

If no matching handler is found in the program, the terminate () function is called ; regardless of whether the stack is broken before this call terminates () will be determined by implementation (15.5.1). Focus on

What happens after that before your OS. In practice: an accident. (Or, if you're in the debugger: “Hey, you didn't get that.”)

+7
source

abort(), , ​​ , , , . - , .

0

Source: https://habr.com/ru/post/1740998/


All Articles