Generating .NET crash dumps automatically

后端 未结 7 2223
清酒与你
清酒与你 2020-11-28 06:57

I know how to generate Crash Dump files with ADPlus or DebugDiag, but I\'m wondering if there is a way to do this on a customer\'s computer without installing these tools...

7条回答
  •  攒了一身酷
    2020-11-28 07:15

    You could P/Invoke dbghelp.dll's MiniDumpWriteDump function in the AppDomain.UnhandledException event.

    In this event you could dump a log of the .NET exception data and write a minidump to file.

    There's also a thread on the MSDN forums which describes the P/Invoke signature and proper usage.

提交回复
热议问题