I am trying to create crash dump for .Net C# application. For this I have written a code which will crash the application for Stack Overflow exception:
namespace Crashme
{
class Program
{
static void Main(string[] args)
{
for (int i = 0; i < 10; i++)
{
System.Threading.Thread.Sleep(2000);
}
Console.WriteLine("Calling text");
crash obj = new crash();
obj.sMyText = "abc";
}
}
class crash
{
public string sMyText
{
get { return sMyText; }
set { sMyText = value; }
}
}
}
The procdump command I am using:
.\procdump.exe -ma -e crashme.exe crash_dump1.dmp
The application is crashing as expected and the procdump is catching it too. I can see at the procdump monitoring console prints. But no dump is getting created.
Guess I am not using the correct procdump command. Can someone please help?