How can I disable the debug assertion dialog on Windows?

后端 未结 3 508
野性不改
野性不改 2020-12-09 09:31

I have a bunch of unit tests that I\'m running in batch mode. Occasionally, one will crash with a debug assertion fired from the Visual C++ library. This causes a dialog t

3条回答
  •  星月不相逢
    2020-12-09 10:05

    I put the code for a suitable hook (that you can install with _CrtSetReportHook()) in: https://stackoverflow.com/a/28852798/2345997

提交回复
热议问题