Solved

Memory Leak

Posted on 2004-04-05
5
401 Views
Last Modified: 2010-04-17
Hi,
I have a program that seems to be suffering from a memory leak(s).  I was wondeing if anyone has any suggestions for locating the cause of the leaks.  The programs is involved in reading from and writing to a large number of text files.  
              Cheers.
0
Comment
Question by:everton690
5 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 100 total points
Comment Utility
Hi everton690,

use a free tool like valgrind ...
http://valgrind.kde.org/

or you can use commercial tools such as rational purify
http://www-306.ibm.com/software/rational/

Sunnycoder
0
 
LVL 6

Expert Comment

by:mmusante
Comment Utility
Can you post your code? (Expecially welcome would be the loop that access to text files)
0
 
LVL 7

Assisted Solution

by:Jenn3
Jenn3 earned 100 total points
Comment Utility
Try this commercial development tool: DevPartner

http://www.compuware.com/products/devpartner/studio.htm

It is truly brilliant piece of work.
0
 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
By the way, which language are you working on?
0
 

Author Comment

by:everton690
Comment Utility
Thanks to all, hopefully I  will now discover the source of the leak.
                          Regards,
                          everton690.
                   
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now