Using VADump to track memory usage – OpenProcess Failed c0000034

memorymemory-profilingprofiling

After reading an article in the most recent issue of MSDN magazine, I wanted to try using VADump to break down the memory usage of some applications I've written.

The only copy of the executable on my PC is at:

c:\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin\winnt\vadump.exe

No matter what combination of arguments I give VADump, it gives back the error:

OpenProcess Failed c0000034

Googling for this turns up a few others who've had the same issue, but none of these posts had resolutions (or even replies!) that I could find.

This machine is running WinXP SP2 with VS2005 and VS2008 installed.

VADump looks like quite a useful tool and I'd really like to try it. Hopefully this will work on another PC in the office, but I'd still like to get it working on mine.

Any ideas?

Best Solution

VADump is old, circa 2000. A graphical equivalent of the tool is actively maintained, called VMMap: http://technet.microsoft.com/en-us/sysinternals/dd535533.aspx.