Post by garyolsenWhat are Private Bytes, NonPagedPool, Paged Pool Bytes? How are thry
related to memory leak?
What tools are most popularly used for detecting potential memory leak?
Thanks!
All memory available to application programs is from the paged pool.
It's the same thing as virtual memory. It means the operating system is
free to swap this memory to disk when necessary.
The nonpaged pool is permanently allocated, never swapped to disk. It
is used by some parts of the operating system and device drivers. You
can't have any of it unless you write a device driver.
Don't know about "private bytes."
A memory leak will cause your application to acquire more and more
virtual memory over time, evenually running out (2 GBytes). You can
best observe this externally by watching the "working set" of the
application in Performance Monitor. Visual C++ has pretty useful
capabilities to detect memory leaks. See _CrtDumpMemoryLeaks and
related functions. In MFC applications this monitoring is done
automatically and it reports all memory leaks in the debugger when the
application is closed.
--
Scott McPhillips [VC++ MVP]