You should define Code: #define _CRTDBG_MAP_ALLOC also check if there is the Code: #include <crtdbg.h> line.
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>