Solved

How to spot memory leaks?

Posted on 1997-12-10
2
168 Views
Last Modified: 2010-04-04
Are there any articles on the net on how to go about
spotting memory leaks in Delphi and C++Builder

Chris
0
Comment
Question by:chrishart
2 Comments
 
LVL 3

Accepted Solution

by:
Pegasus100397 earned 100 total points
ID: 1353323
Chrishart,

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
 

Author Comment

by:chrishart
ID: 1353324
thanks, that sounds like good advice, I'm off to raid the piggy bank!

ta Chris
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

810 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