Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding the crash dump files for a C# app

An app I'm writing always crashes on a clients computer, but I don't get an exception description, or a stack trace.
The only thing I get is a crash report that windows wants to send to Microsoft.
I would like to get that dump file and investigate it myself, but I cannot find it.

When I "View the contents of the error report" I can see the different memory dumps, but I cannot copy it or save it.

like image 969
Mats Fredriksson Avatar asked Aug 26 '08 10:08

Mats Fredriksson


People also ask

Where are crash dump files stored?

Crash dump file are stored in %LOCALAPPDATA%\CrashDumps . This is a subfolder of the user profile. For user helge it resolves to C:\Users\helge\AppData\Local\CrashDumps .

Where are minidump files located?

The Windows minidump file is found in the "minidump" subfolder of the Windows system folder (e.g., "C:\Windows\minidump") and looks somewhat similar to this: Mini030915-01.

Where do I find BSOD dump files?

Go to the following locations to collect the memory dump files: Small Memory dump - C:\WINDOWS\Minidump directory. The Kernel and Complete Memory Dump - %SystemRoot%MEMORY. DMP.


2 Answers

You can use the Windows debugging tools to view the crash dump. To get the most use out of it, you'll need an exact copy of the symbols for that application (i.e. same version).

Have a look at Tess's blog for tutorials on how to use the Windows debugging tools. I refer to her blog constantly whenever I'm in need of analysing crash dumps.

like image 129
Sir Rippov the Maple Avatar answered Sep 20 '22 13:09

Sir Rippov the Maple


Tess' blog was a great resource. Eventually I managed to figure out how to do remote debugging which means I didn't have to look at the crash dump.

For the general community, here are some links I found useful:

  • Remote debugging, how to set up and run it.
  • Crash dumps, how to save and debug them.
like image 24
Mats Fredriksson Avatar answered Sep 23 '22 13:09

Mats Fredriksson