🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7002

Re: how to check heap utilisation

#7002
From: Andrue Cope [TeamB]
Date: Tue, 22 Mar 2005 16:24
32 lines
2031 bytes
Boguslaw Fries wrote:

> I made some new and normally I release memory using appropriate
> delete. But sometimes I forgot delete.

That's called a memory leak. If it's in a piece of code that is being
called frequently while the program runs then it's a serious problem.
If it only runs once (perhaps at application startup or shutdown) then
it's a relatively minor issue.

In either case when your application is unloaded by Windows the leaks
will cease to matter since Windows will reclaim everything anyway. They
are generally considered an indicator of poor and questionable
development practice though so their presence should be investigated as
a matter of principal :)

To track down these issues you need an appropriate debugging tool. Some
versions of Builder come with Code Guard installed. Alternatively you
can download Memproof:

  http://www.automatedqa.com/downloads/memproof/

But while you're on that site you could have a play with:

  http://www.automatedqa.com/products/aqtime/index.asp

Which tracks memory leaks and offers an excellent performance
monitoring facility.
-- 
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <424046fe$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <424041ff$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,92662bd200593102,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address>
Subject: Re: how to check heap utilisation
Newsgroups: borland.public.cppbuilder.nativeapi
References: <424041ff$1@newsgroups.borland.com>
Date: Tue, 22 Mar 2005 16:24:09 +0000
User-Agent: XanaNews/1.17.3.1
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.207.223.34
Message-ID: <424046fe$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1111508734 217.207.223.34 (22 Mar 2005 08:25:34 -0800)
Lines: 32
X-Authenticated-User: acope
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail