Solved

Memory Leak

Posted on 2004-04-05
5
404 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
This article will show, step by step, how to integrate R code into a R Sweave document
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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…

920 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

18 Experts available now in Live!

Get 1:1 Help Now