Catching all unhandled C++ exceptions?

前端 未结 8 2137
深忆病人
深忆病人 2020-12-13 19:22

Is there some way to catch exceptions which are otherwise unhandled (including those thrown outside the catch block)?

I\'m not really concerned about all the normal

8条回答
  •  情歌与酒
    2020-12-13 19:46

    You can use SetUnhandledExceptionFilter on Windows, which will catch all unhandled SEH exceptions.

    Generally this will be sufficient for all your problems as IIRC all the C++ exceptions are implemented as SEH.

提交回复
热议问题