
detecting memory leaks in vc7
Quote:
>{,,msvcr70d.dll}_crtBreakAlloc does not work when compiling a DLL with /MTd
>only with /MDd, any idea what will work with /MTd?
use your dll name instead of msvcr70d.dll.
Please note that when you use the static version of crt (/MTd or /MLd)
there are multiple copies CRT libs and hence CRT heaps and _crtBreakAlloc
variables involved. For example lets say you have a dll (say mydll.dll )
and exe (say myexe.exe) both built with /MTd.
Both mydll and myexe will have its own unique copy of CRT and debug heaps.
Allocated memory in dll cannot be deallocated from exe or vice-versa.
Hope this helps
Thank you,
Bobby Mattappally
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.