Where is the application dump created by Environment.FailFast() located on the disk?

前端 未结 1 2314
长发绾君心
长发绾君心 2021-02-20 18:11

I am trying to use Environment.FailFast() in my application. The MSDN documentation says that it creates an application dump during application termination.

相关标签:
1条回答
  • 2021-02-20 19:02

    I used the following code to reproduce the issue:

    Environment.FailFast("Something bad happened");
    

    You need to add the correct registry entries for it to place the dump in your desired location or you can read it to find the location. Here is the registry key:

    enter image description here

    which is

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps

    You can read more about other options in Getting full user mode dumps automatically when your process crashes.

    0 讨论(0)
提交回复
热议问题