Q: memory leak occur only in specific build 
Author Message
 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



Sun, 16 Feb 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How to get alerted if memory leaks occur?

2. Memory leak in DllMain with Unicode build

3. error occur while building dll in win32 release mode

4. Handle leak, memory leak...

5. Memory cleanup does not occur, even though GC .Collect() is called

6. Class object, returning pointers, dynamic memory, memory leaks

7. Finding memory leaks in shared memory pool

8. Memory leaks, DLL and memory allocation.

9. Tracking memory leaks and debugging memory problems

10. Memory leak when using Memory DC

11. Portable code versus unix specific build procedures

12. Placing variables in specific memory locations

 

 
Powered by phpBB® Forum Software