Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I configure windows to generate a core dump from an application?

How can I configure windows to generate a core dump from an application?

I'm using Win xp, and the application is build with Visual Studio 2003.

like image 745
pcent Avatar asked Jan 12 '11 18:01

pcent


Video Answer


3 Answers

Microsoft has a free tool called Userdump.exe which will do this.

It's pretty simple to use that tool to create a dump (.dmp) file for a process that shuts down with an exception or to create a dump file for a hanging process

like image 198
DOK Avatar answered Oct 05 '22 18:10

DOK


Just to throw in some other suggestions:

  • ProcDump that is part of the MS SysInternals suite (it captures crashes but also does a load more, can take dumps if CPU usage spikes for an amount of time, etc)
  • You can put code into your exe using MiniDumpWriteDump to save out dumps youself (which I've done in a few tools). You have control over the name and location (i.e. network path). There's some sample code here
like image 27
Roger Perkins Avatar answered Oct 05 '22 17:10

Roger Perkins


You can open Task Manager (by right clicking the task bar), find your process in the processes tab, right-click it and select Create Dump File.

like image 21
splintor Avatar answered Oct 05 '22 16:10

splintor