Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


The _crtDbgFlag flag consists of five bit fields that control how memory allocations on the debug version of the heap are tracked, verified, reported, and dumped. The bit fields of the flag are set using the _CrtSetDbgFlag function. This flag and its bit fields are declared in CRTDBG.H. This flag is only available when the _DEBUG flag has been defined in the application.

For more information about using this flag in conjunction with other debug functions, see Heap State Reporting Functions.

See Also

Control Flags

© 2015 Microsoft