Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable application crash dumps on Windows 7

Silly question: How do I prevent Windows 7 from storing the memory dump of a crashed application?

I'm experimenting with the stack allocation in a C++ application, so the toy program crashes a lot. And for each crash, Windows dumps the memory to the %USER%/AppData/Local/CrashDumps. It's about 150MB each. How do I disable this? I've searched the internet far and wide. The only thing I could find on Windows 7 is System→Advanced→Startup and Recovery→System failure crash dumps, and I already disabled these.

It's not really a big deal, just annoying because it sits in my user profile.

like image 663
Norbert P. Avatar asked May 17 '11 18:05

Norbert P.


People also ask

How do I disable crash dumps Windows 7?

On the Power Management tab, select the Allow this device to wake the computer option and click OK. Also check the minidump files, because the Windows 7 crash could be related to a device. If the problem is related to a device, uninstall and reinstall the device, and then ensure those drivers are up to date.

How do I stop crash dumps?

To stop creating dump files after a crash with a command, use these steps: Open Start. Search for Command Prompt, right-click the top result, and select the Run as administrator option. Type the following command to disable the system from creating crash dump files and press Enter: wmic recoveros set DebugInfoType = 0.

How do I find crash dump files windows 7?

Click Start, and then click Control Panel. Double-click System, and then click Advanced system settings. Click the Advanced tab, and then click Settings under Startup and Recovery. In the Write debugging information list, click Small memory dump (256k).

Can I delete crash dumps?

Yes. You can remove them. These dumps are to be analyze to identify crashes cause related to WmiPrvSE.exe.


2 Answers

I think the mechanism responsible for creating all those dump files on your system is WER (Windows Error Reporting). You can read on how to disable it there: http://www.techrena.net/windows/disable-windows-7-error-reporting/

  1. Press Win + R to open the Windows Run command.Type “services.msc” in the run command bar and hit ‘OK’.
  2. This will open up Services window where you can see list of all the services that are currently available on your Windows.
  3. Right click on the Windows Error Reporting Service and choose “Properties". The startup type will be either in “Automatic” or “Manual” by default. To completely disable the service choose “Disabled” and press 'OK'.
like image 127
franmon Avatar answered Sep 18 '22 11:09

franmon


In order to disable the creation of a memory dump file or how one is created, open regedit and navigate to the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl

Once you've found this key, click on it and change the value of "CrashDumpEnabled" according to the options below:

0 = None
1 = Complete memory dump
2 = Kernel memory dump
3 = Small memory dump (64KB)

Then restart your computer for it to take effect.

like image 25
Anonymous Avatar answered Sep 18 '22 11:09

Anonymous