Article View: borland.public.cppbuilder.nativeapi
Article #7013how to check heap utilisation
From: Boguslaw Fries
Date: Tue, 22 Mar 2005 16:04
Date: Tue, 22 Mar 2005 16:04
19 lines
1466 bytes
1466 bytes
Hello,
perhaps my question is very naive, but it it for me really important.
How many memory is allocated on the heap?
I made some new and normally I release memory using appropriate delete. But
sometimes I forgot delete.
Having such a possibility as above I could simpler know if there is an error
in my program.
For example:
heap_size = GetHeapSize( );
x = new( t );
...
if( heap_size != GetHeapSize( ) )
{
....some delete is missing
}
Best regards
Boguslaw Fries
Technical Details
Message-ID:
<424041ff$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,92662bd200593102 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Boguslaw Fries" <boguslaw.fries@polivision.it> Newsgroups: borland.public.cppbuilder.nativeapi Subject: how to check heap utilisation Date: Tue, 22 Mar 2005 17:04:02 +0100 Lines: 22 Organization: PoliVision X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 83.25.85.15 Message-ID: <424041ff$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111507455 83.25.85.15 (22 Mar 2005 08:04:15 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail