Solved

Memory Leak

Posted on 2004-04-05
5
420 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 100 total points
ID: 10757520
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
ID: 10758218
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
ID: 10760082
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:Mayank S
ID: 10763112
By the way, which language are you working on?
0
 

Author Comment

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

737 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