Regarding Memory leaks.

Hello All,
I need some help in Detecting & removing the memory leaks in my Program.I'm using VC++ debugging tool for dumping objects i.e use of #include ctrdbg.h & _CrtDumpMemoryLeaks().
But in the o/p window i'm getting
Dumping objects ->
{50} client block at 0x00301DF0, subtype 0, 64 bytes long.
a CDynLinkLibrary object at $00301DF0, 64 bytes long
But i cant locate the source of leak if i try to press F4 or double click on the specific line.

Thanx & bye
[519 byte] By [pinak] at [2007-11-18 17:39:49]
# 1 Re: Regarding Memory leaks.
use _CrtSetDbgFlag(...) and let the CRT call the _CrtDumpMemoryLeaks(...) for you (helps also with overwrites if you add the _CRTDBG_CHECK_ALWAYS_DF but I don't advise keeping that on all the time, just a pass or 2 or when you have issues with overwrites)...

Use _CrtSetBreakAlloc(num in {}) to break when you allocate that memory block, you can do this dynamically in the watch window or in code.

The CDynLinkLibrary as I recall is usually a 'false' report, which happens when your linking MFC via dlls...
Mick at 2007-11-11 1:26:19 >
# 2 Re: Regarding Memory leaks.
Detecting Memory Leaks ( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_core_detecting_memory_leaks.asp)
Detecting Memory Leaks in MFC ( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/_core_detecting_memory_leaks.asp)
Andreas Masur at 2007-11-11 1:27:17 >