I want to check my program for memory leaks and found this Microsoft article.
I thoroughly followed the article and added
#define CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
and
_CrtDumpMemoryLeaks();
when the program exits.
It properly dumps all the memory leak info in my output window, but here's the problem:
It doesn't print the file name and line number where the memory leaks are!
It says in the article that with #define _CRTDBG_MAP_ALLOC
it prints the file name and line number, but it doesn't for me.
My output looks like this
Detected memory leaks!
Dumping objects ->
{3456} normal block at 0x038F81E8, 560 bytes long.
Data: < A B> 00 00 00 00 00 00 10 41 00 00 00 FF 00 00 E6 42
{3447} normal block at 0x038F8170, 56 bytes long.
Data: < B ^ B > 80 42 90 03 10 02 5E 08 80 42 90 03 00 00 CD CD
{3440} normal block at 0x038F86B0, 840 bytes long.
Data: < A B> 00 00 00 00 00 00 10 41 00 00 00 FF 00 00 A8 42
...
So I can't really work with that... also pressing F4 to go to the line doesn't work.
Could you please help me?