Solved

Memory leakage : How to detect?

Posted on 1997-11-20
5
200 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
  • 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

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

930 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

11 Experts available now in Live!

Get 1:1 Help Now