Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Memory leakage : How to detect?

Posted on 1997-11-20
5
Medium Priority
?
208 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 200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month11 days, 23 hours left to enroll

916 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