DZone Forums
Go Back   DZone Forums > Community > Languages & Frameworks > C & C++
Reload this Page Please suggest a C++ source code analysis tool for debugging memory leak
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Join Date: Mar 2008
Default Please suggest a C++ source code analysis tool for debugging memory leak - 04-22-2008, 01:10 AM

Hi... we are providing software support for one of the famous retailers in U.S. The code has been written in C++. Our field test customers feel that the application software is very slow.
Before we deliver the software to our clients, we are in a urge to improve the performance of the application. Some of our software engineers suspect that the memory dirty pages are too high in the application. They feel that the code have lot of memory leaks. Are there ways to improve the performance of the software?? Is there any tool that finds us the memory leaks in the code? Please suggest?
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Join Date: Apr 2008
Default you can use Source code analysis tool like Coverity Prevent - 04-22-2008, 01:24 AM

Hi, typically, a memory leak occurs because dynamically allocated memory has become unreachable. You can prevent memory leaks by watching for some common problems. Collection classes, such as hash tables and vectors, are common places to find the cause of a memory leak. This is particularly true if the class has been declared static and exists for the life of the application. . The prevalence of memory leak bugs has led to the development of a number of debugging tools to detect unreachable memory. Coverity Prevent is one of the tool that you can use for fixing these kinds of bugs. Coverity Prevent is also used by the Department of Homeland security to scan many open source projects. You can get more info at Coverity webpage
Reply With Quote
The Following User Says Thank You to godwin24 For This Useful Post:
allenfelder (08-12-2009)
  (#3 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 2 Times in 2 Posts
Join Date: Apr 2009
Default Source code analysis tool like Coverity Prevent - 04-03-2009, 10:54 AM

I went through the site ..found some interesting thing in
Coverity Prevent
automated source code analysis of C/C++, C# and Java software

thank you for the post
Reply With Quote
The Following User Says Thank You to cecil joy For This Useful Post:
allenfelder (08-12-2009)
  (#4 (permalink)) Old
Member
 
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Join Date: Jun 2009
Default 06-24-2009, 11:52 PM

have you looked at valgrind?
Reply With Quote
The Following User Says Thank You to BlueJay For This Useful Post:
allenfelder (08-12-2009)
  (#5 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Join Date: Jul 2009
Default 07-14-2009, 05:12 PM

Valgrind is what you are looking for.

Its a great application that makes really detailed analysis. At first its a little tricky understand the results but after some practice you 'll love it
Reply With Quote
The Following User Says Thank You to quiquin For This Useful Post:
allenfelder (08-12-2009)
  (#6 (permalink)) Old
Member
 
Posts: 2
Thanks: 6
Thanked 0 Times in 0 Posts
Join Date: Aug 2009
Default 08-12-2009, 02:55 AM

Haven't tried Valgrind yet. Coverity Prevent works great. Recently they have also allowed academic access to their static code analysis software Coverity Prevent, for both teaching and research use. Now students can learn the practical benefits that static analysis can bring to software development
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugging in eclipse - source not found? maxmal Eclipse 3 01-23-2009 04:50 PM
Remote debugging problem in application startup code satisha123 Eclipse 0 12-24-2008 05:52 AM
Java 5 Source Code kirenpillay Java 1 11-13-2008 06:19 PM
Problem debugging SWT/JFace code... jorgedieguez Eclipse 1 08-19-2008 05:37 PM
Eclipse source code suma_eclipse Eclipse 3 06-03-2008 05:54 PM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com