views:

6

answers:

0

Usually, when tracking down a memory leak in a Visual C++ program, I recompile to make use of all of the good stuff in <crtdbg.h>.

Last week, however, I stumbled across UMDH, part of the Debugging Tools for Windows. It can take before/after snapshots of memory usage, and then compare them, allowing you to find your leaks.

I assume that the C++ runtime will only occasionally ask the OS for more memory, and that it will suballocate the memory that it gets.

Does this mean that I can't trust the stack traces reported by UMDH?

Note that my PDBs are correctly referenced in _NT_SYMBOL_PATH.