Disable application crash dumps on Windows 7

Norbert P. picture Norbert P. · May 17, 2011 · Viewed 32.8k times · Source

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.

Answer

franmon picture franmon · May 28, 2011

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'.