I am trying to use _CrtDumpMemoryLeaks()
to display memory leaks in my program.
But it does not display anything except for returning 0 in case of no memory leaks and 1 in case there is a leak.
The link here shows the output should be like:
Detected memory leaks!
Dumping objects ->
D:VisualC++CodeGuruMemoryLeakMemoryLeak.cpp(67) : {60}
normal block at 0x00324818, 4 bytes long.
Data: <, > 2C 00 00 00
Object dump complete.
Can anyone suggest the correct way of using this function.
See Question&Answers more detail:os