
Q: memory leak occur only in specific build
Hi there,
I am aware of some common ways of detecting memory leaks.
However, after having tried everything I know of, I still could not
find the real cause.
What is interesting about this memory leak is that it only shows up when I build
my project using "MFC as a shared DLL" and "Debug Mutli-thread DLL" as run
time library. The follow in the dump is given by _CrtDumpMemoryLeaks().
And if I rebuild my project using "MFC as a static DLL" and "Debug Multi-thread"
as run time library, there is no memory leak reported.
Does anybody have suggestion? Thanks in advance.
Detected memory leaks!
Dumping objects ->
{62} normal block at 0x003015B0, 33 bytes long.
Data: < C > 00 43 00 CD CD CD CD CD CD CD CD CD CD CD CD CD
{61} normal block at 0x00301600, 40 bytes long.
Data: < |L > 14 7C 4C 10 16 00 00 00 00 00 00 00 00 00 00 00
{59} client block at 0x00301710, subtype 0, 64 bytes long.
a CDynLinkLibrary object at $00301710, 64 bytes long
{54} client block at 0x00301890, subtype 0, 64 bytes long.
a CDynLinkLibrary object at $00301890, 64 bytes long
{52} client block at 0x003019B0, subtype 0, 64 bytes long.
a CDynLinkLibrary object at $003019B0, 64 bytes long
Object dump complete.
The thread 0x90 has exited with code 0 (0x0).
The thread 0x11A has exited with code 0 (0x0).
--
Yan