7

I have found multiple ways of creating dump file such using windows utitlity userdump and adplus.vbs and a few others. There is one option that I have found in task manager seems to be the easiest and simplest one open task manager + select the process + right click + create user dump. Is the .dmp file created using taks manager any different than the one created using win utilities?

Getting a user to create a dump file from task manager is so much easier than having him run the utilities.

bsobaid
  • 955
  • 1
  • 16
  • 36
  • Does this work with XP? I don't see the menu item when I right click on running processes. Does the process have to be in trouble (e.g. not responding) before you see the menu item? – Tom Bushell May 31 '12 at 21:46
  • They are all easy, with the right tools installed. Sure, the taskmgr.exe dump will work just fine. It is just not very mini. – Hans Passant Jun 01 '12 at 00:00
  • It is on Win server 2000. The option always shows up for all processes. – bsobaid Jun 07 '12 at 20:42

3 Answers3

6

Keep in mind that on a 64-bit OS, the dump created by Task Manager for a WOW process will be a 64-bit dump. This can cause problems, especially if you're debugging managed code. For 32-bit WOW processes, it's generally best to use a 32-bit utility.

Steve Johnson
  • 2,958
  • 13
  • 15
  • 6
    There's a 32 bit version of task manager in `\Windows\SysWow64`. Using that instead of the default task manager will generate a proper 32 bit dump. – Brian Rasmussen Jun 04 '12 at 02:53
2

Not sure what the difference is in the minidump created from task manager but if you want further information then the best thing to do is to create the minidump either programmatically and set the appropriate flags (note that some flags are OS dependent) or using Dr. Watson where you can simply check the boxes for the information you want in the dump file.

You can programmatically create the dump using MiniDumpWriteDump: http://msdn.microsoft.com/en-us/library/windows/desktop/ms680360%28v=vs.85%29.aspx there is a SO article on this: How to create minidump for my process when it crashes?

You can also setup dr. Watson to generate them for you when the crash happens: http://kb.acronis.com/content/2191

the task manager solution is fine but generating them automatically is better IMO and generating them programmatically gives you better control and the option to dump additional information specific to your app.

Community
  • 1
  • 1
EdChum
  • 376,765
  • 198
  • 813
  • 562
2

One of the methods that we use for catching crashes or hangs on end-user machines is with the excellent ProcDump utility, and we write a simple batch script that either sits and waits until the app is unresponsive, or you can set other conditions such as when the CPU usage reaches a particular point. I give an example in this response.

Community
  • 1
  • 1
the_mandrill
  • 29,792
  • 6
  • 64
  • 93