Solved

Memory leakage : How to detect?

Posted on 1997-11-20
5
199 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
Comment Utility
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
Comment Utility
Hi Pegasus,
Where can I get these products? Do you have an URL?
0
 
LVL 3

Expert Comment

by:Pegasus100397
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

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…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

8 Experts available now in Live!

Get 1:1 Help Now