catch(…) is not catching an exception, my program is still crashing

后端 未结 4 1086
余生分开走
余生分开走 2021-02-19 17:01

I\'m having a problem with a tester that my application crashes in initialization. I added more logging and exception handling but it still crashes with the generic \"this progr

4条回答
  •  长发绾君心
    2021-02-19 17:25

    If an exception is thrown by the destructor of an object that is destroyed as a result of the stack unwinding to handle a different exception, the program will exit, catch(...) or not.

提交回复
热议问题