I am trying to use Environment.FailFast() in my application. The MSDN documentation says that it creates an application dump during application termination.
The FailFast method writes the message string to the Windows Application event log, creates a dump of your application, and then terminates the current process. The message string is also included in error reporting to Microsoft.
Can someone direct me to the location where the dump is created?
I used the following code to reproduce the issue:
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:
which is
You can read more about other options in Getting full user mode dumps automatically when your process crashes.