Connect with Expertise | Find Experts, Get Answers, Share Insights

Memory leaks detection in C++

 
Join Date: Feb 2010
Posts: 1
#1: Feb 2 '10
Hi.

I've tried using several tools to detect memory leaks (and also bottlenecks) in the C++ code I'm working on (platform: Windows). But our software is so large that none of them have been useful at all (GlowCode, IBM Purify and BoundsChecker).

Do you know any other tool running on Windows that may help us?

Another possible solution for us would be using one of these tools running on a 64-bit system. Anyone knows if there's some leak detection tool running on 64 bits?

Thanks a lot :)

E
M
C
 
Join Date: Mar 2007
Location: North Bend Washington USA
Posts: 6,114
#2: Feb 2 '10

re: Memory leaks detection in C++


You might consider having not memory management at all. Richter in Windows vis C/C++ suggests a private process heap rather than using the CRT heap. That way all you need do is delete your private heap when the process completes. And there go your leaks. You can have many heaps in the same process.

BTW I am surprised BoundsChecker isn't working.
Reply

Tags
bottlenecks, c++, leaks, memory