How to make my code creating dump file before crash?

后端 未结 3 2083
没有蜡笔的小新
没有蜡笔的小新 2021-02-06 12:23

I have some code in C# and C++ ( in one project ). This code have some crash and i trying t find it. but this crash is not reproduce any time - and i can\'t find it.

3条回答
  •  心在旅途
    2021-02-06 12:42

    You can register an unhandled exception filter and PInvoke MiniDumpWriteDump. A code sample to do that is located here

提交回复
热议问题