Solved

Memory leakage : How to detect?

Posted on 1997-11-20
5
205 Views
Last Modified: 2010-04-04
Hi,

I want to check if my programs give all memory back after closing. How can I check this the best way?

Regards,
ZifNab;
0
Comment
Question by:ZifNab
[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
  • 2
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
Pegasus100397 earned 50 total points
ID: 1351101
ZifNab,

My advice would be to get a product like Memory Sleuth or BoundsChecker. I use both of these tools and they tell you almost to a T where, when and how much memory/resources, etc are available as well as what resources were not freed. I worthwhile investment if your into serious Delphi programming.

On the cheap, writing a small program to access the Windows API environment functions would also work to show you how much memory, hard disk space, system resources, etc are being used before, during and after the program. If the start values and end values don't match then that indicates your program consumed "something" and didn't get it back.

Good luck with your project!
Pegasus
0
 
LVL 8

Author Comment

by:ZifNab
ID: 1351102
Hi Pegasus,
Where can I get these products? Do you have an URL?
0
 
LVL 3

Expert Comment

by:Pegasus100397
ID: 1351103
Sure Zif!

BoundChecker can be "checked" out (pun intended :) at:

http://www.numega.com

and Memory Sleuth can be found at

http://www.turbopower.com

You'll enjoy working with either one since you can "step" through your code and get instant gratification as to what it's eating up resource-wise.

Have fun tracking the memory leaks! (way of life in Delphi!) :)
Pegasus
0
 
LVL 8

Author Comment

by:ZifNab
ID: 1351104
Hi Pegasus,

it took a while before I graded this answer, but my computer had a 'little' melt-down :-(.

Thanks for the url's!

PS. Do you know answer to my question about international settings? (How to determine that decimal of floating point values has to be a point or a comma in your program?)
0
 

Expert Comment

by:joined
ID: 8563225
You can try EurekaLog (www.eurekalog.com).

EurekaLog is an add-in tool that gives to your application (GUI, Console, Web, ActiveX, NT-Service, Control-Panel, BPL, DLL, IntraWeb, etc.) the ability to catch every exception (even those raised by memory leaks), and generates a detailed log of call stack (with unit, class, method and line #), showing and sending it back to you via email.

--
Best regards...

Fabio Dell'Aria.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month5 days, 8 hours left to enroll

627 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