|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Dumps the debug header information for a specified heap state in a user-readable form (debug version only).
void _CrtMemDumpStatistics( const _CrtMemState *state );
- Pointer to the heap state to dump.
The _CrtMemDumpStatistics function dumps the debug header information for a specified state of the heap in a user-readable form. The dump statistics can be used by the application to track allocations and detect memory problems. The memory state may contain a specific heap state or the difference between two states. When _DEBUG is not defined, calls to _CrtMemDumpStatistics are removed during preprocessing.
For more information about heap state functions and the _CrtMemState structure, see Heap State Reporting Functions. For information about how memory blocks are allocated, initialized, and managed in the debug version of the base heap, see Memory Management and the Debug Heap.
|_CrtMemDumpStatistics||<crtdbg.h>||Win 98, Win Me, Win NT, Win 2000, Win XP|
For additional compatibility information, see Compatibility in the Introduction.
Debug versions of C run-time libraries only.
For a sample of how to use _CrtMemDumpStatistics, see crt_dbg1.