Destructor - does it get called if the app crashes

后端 未结 3 1020
醉酒成梦
醉酒成梦 2021-01-07 21:20

Does a destructor get called if the app crashes? If it\'s an unhandled exception I\'m guessing it does, but what about more serious errors, or something like a user killing

3条回答
  •  Happy的楠姐
    2021-01-07 22:19

    If killing an application, the application would almost 100% lost the control immediately and there's no chance for it to call the destructor.

提交回复
热议问题