views:

434

answers:

2

Is there a way that I can get a full crash dump when my application crashes suddenly?

The problem is that I suspect that it's due to unmanaged code that kills the .net framework itself, and because of that, unless there's a debugger attached to the application at the moment of the crash, the application doesn't even gets a chance to handle the crash.

I can't attach a debugger and wait, because the crash happens randomly and we have many installed locations, so I'm wondering if it's possible to do this without attaching a debugger.

Edit: I'm aware of Microsoft Debugging SDK, and I also just found out about DebugDiag. I'd like to do this without having to attach to the application each time, as it's usually in the middle of a sale and I don't have time to attach the debugger and explore the stack trace. DebugDiag does seem to let me setup a rule for this, but it seems to only work on already running processes, rather than waiting for some process to launch.

+2  A: 

You can use adplus -crash or userdump.exe.

Rasmus Faber
A: 

debugdiag is fully scriptable. When I was having problems like this, we would have it scan for certain process names, and attach automatically.

jwmiller5