AfxEnableMemoryTracking 

BOOL AfxEnableMemoryTracking( BOOL bTrack );

Return Value

The previous setting of the tracking-enable flag.

Parameters

bTrack

Setting this value to TRUE turns on memory tracking; FALSE turns it off.

Remarks

Diagnostic memory tracking is normally enabled in the Debug version of MFC. Use this function to disable tracking on sections of your code that you know are allocating blocks correctly.

For more information on AfxEnableMemoryTracking, see MFC Debugging Support in Visual C++ Programmer’s Guide.

Note   This function works only in the Debug version of MFC.