Checks all current memory allocations to make sure all of the allocation cookies are intact
Err SanityCheckMemDebug(const TagArg *args);
This function checks all current memory allocations to see if any of the memory cookies have been corrupted. This is useful when trying to track down at which point in a program's execution memory cookies are being trashed.
The routine will also complain about any memory allocated by a task or thread that doesn't exist anymore. This only happens if the MEMDEBUGF_ALLOW_OWNER_SWITCH flag was not specified when calling CreateMemDebug()
.
Returns > = 0 if successful or a negative error code if not. Current possible error code is.
Library routine implemented in memdebug.lib V24.
mem.h, memdebug.lib
CreateMemDebug
(), DeleteMemDebug(), DumpMemDebug()