Not reporting leaks
Posted: Tue Nov 10, 2020 9:59 am
Hi,
I'm trying to figure out why my large project does not report memory leaks (C++ Builder Sydney R1; madCollection 2.8.9.1; VCL application (converted from earlier C++ Builder version); legacy compiler; mostly statically linked; dynamic RTL; > 800 units, the resulting exe is 42 Mb, the tds file is 213 Mb). Things I have checked:
Hope you can help!
I'm trying to figure out why my large project does not report memory leaks (C++ Builder Sydney R1; madCollection 2.8.9.1; VCL application (converted from earlier C++ Builder version); legacy compiler; mostly statically linked; dynamic RTL; > 800 units, the resulting exe is 42 Mb, the tds file is 213 Mb). Things I have checked:
- In the madExcept settings leak reporting is on.
- madExcept is linked into the application (madBasic_.lib, madDisAsm_.lib, madExcept_.lib).
- madExcept32.dll is present in the folder where the exe is. (note: DLL file properties report version 4.0.6.0, which is the same as my earlier version of madExcept. But the file size is 970.560 bytes, which differs from my earlier version of madExcept)
- No message "Well done = No leaks found" either.
- When I manually call Madexcept::StartLeakChecking soon after the start of the application, it does report leaks when the application exits. But I'd rather have leak checking started immediately when starting the application.
- A small sample application compiled in the same IDE *does* report leaks.
Hope you can help!