Solved

Memory leakage : How to detect?

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 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