Vivienne
2007-09-17 06:35:16 UTC
Hi,
I detect memory leaking in my application, like this,
Detected memory leaks!
Dumping objects ->
{895} normal block at 0x043B0B60, 44 bytes long.
Data: < g, > i K> A9 EB 67 2C 99 A5 9A 81 3E 99 69 00 9A FB B7
4B
{890} normal block at 0x043B09D0, 17 bytes long.
Data: <i iDu u_9g > 69 14 0B BE 9D 69 44 75 F6 75 5F 39 67 87 94
8F
{876} normal block at 0x043B0CB0, 29 bytes long.
......................................
but, it doesn't show me the file and the line number where the memory
was allocated.
I followed MSDN instructions, and placed the following lines in my
application:
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
and expected to get the display like this:
Detected memory leaks!
Dumping objects ->
C:\PROGRAM FILES\VISUAL STUDIO\MyProjects\leaktest\leaktest.cpp(20) :
{18}
normal block at 0x00780E80, 64 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
CD
Object dump complete.
but this didn't make any change.I can't the the expected display.
Then what is wrong? what should I do?
Thanks!
Vivienne
then, how can't I make it display the file and line numbers
I detect memory leaking in my application, like this,
Detected memory leaks!
Dumping objects ->
{895} normal block at 0x043B0B60, 44 bytes long.
Data: < g, > i K> A9 EB 67 2C 99 A5 9A 81 3E 99 69 00 9A FB B7
4B
{890} normal block at 0x043B09D0, 17 bytes long.
Data: <i iDu u_9g > 69 14 0B BE 9D 69 44 75 F6 75 5F 39 67 87 94
8F
{876} normal block at 0x043B0CB0, 29 bytes long.
......................................
but, it doesn't show me the file and the line number where the memory
was allocated.
I followed MSDN instructions, and placed the following lines in my
application:
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
and expected to get the display like this:
Detected memory leaks!
Dumping objects ->
C:\PROGRAM FILES\VISUAL STUDIO\MyProjects\leaktest\leaktest.cpp(20) :
{18}
normal block at 0x00780E80, 64 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
CD
Object dump complete.
but this didn't make any change.I can't the the expected display.
Then what is wrong? what should I do?
Thanks!
Vivienne
then, how can't I make it display the file and line numbers