Dumping Memory Statistics

The CMemoryState member function Difference determines the difference between two memory-state objects. It detects any objects that were not deallocated from the heap between the beginning and end memory-state snapshots.

To dump memory statistics

For more information, see Dumping All Objects, Tracking Memory Allocations, AfxEnableMemoryTracking, and CMemoryState.