2

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)
  • ...?
Pieter
  • 1,191
  • 1
  • 11
  • 29

2 Answers2

1

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.

wilx
  • 17,697
  • 6
  • 59
  • 114
  • 1
    Visual Studio is (and will likely remain forever) a 32-bit application. Switching to a 64-bit OS will buy you no more than 2 GB of address space. WinDbg, on the other hand, is available as a native 64-bit application, so this does make a significant difference. The fact that WinDbg uses the *Windows debugger* (implemented in the system component dbgeng.dll) generally delivers higher quality than Visual Studio's debugger. – IInspectable Mar 25 '15 at 09:58
0

I'm running into the same issue on VS2010 using windows 7 64-bit. Trying to load any dump created with MiniDumpWithPrivateReadWriteMemory set fails with "Not enough storage is available to process this command".

I don't think its actually a memory issue because opening a dump with MiniDumpWithFullMemory works fine and that actually creates larger dumps.

This appears to be a bug with visual studio and its disappointing that it still exists several versions later.

BigSandwich
  • 2,768
  • 2
  • 22
  • 26