Search code examples
c++windowsvisual-studiominidump

My minidumps are getting too big to be loaded by Visual Studio, how do I solve this?


When my application crashes it generates a minidump to allow post mortem debugging. I use the options MiniDumpWithIndirectlyReferencedMemory and MiniDumpWithPrivateReadWriteMemory.

It all worked great until recently when the dumpfiles started getting over 500MB in size. Visual Studio throws the following error at me the moment I want to start debugging a dump that size.

"Not enough storage is available to process this command"

I have WinXP 32 bit, with 4GB of RAM in it of which I'm using less then 1GB. Depending on how economical VS2008 is with it's memory in this procedure, it should have plenty of addressable space.

What I do not want to do:

So how should I solve this?

  • Omit some dll's from the dump? Split the included memory from groups of dll's over different dumps? Any idea on how to do this? (if this is even possible)
  • ...?

Solution

  • You could try using WinDbg from the Debugging Tools for Windows package, to see if it does not manage the memory better than Visual Studio. However I would suggest trying 64-bit OS, even though you do not want to do it. In these days and times you should provide your application also as native 64 bit Windows application, and for that you need 64 bit Windows anyway.