I'm trying to generate dumps for my C# application, I used the FailFast method to "Immediately terminates a process after writing a message to the Windows Application event log, and then includes the message and optional exception information in error reporting to Microsoft."
static void Main(string[] args)
{
string causeOfFailure = "This is a test crash.";
try
{
Environment.FailFast(causeOfFailure);
}
finally
{
Console.WriteLine("This finally block will not be executed.");
}}
I managed to get the error on event viewer, however Dumps are not generated
This is my settings for the dumps in the registry:
I kept default values, so the Dump folder should be %LOCALAPPDATA%\CrashDumps However, no dumps are generated