comp.lang.ada
 help / color / mirror / Atom feed
From: randhol+abuse@pvv.org (Preben Randhol)
Subject: Re: Problems freeing memory with Free
Date: Mon, 30 Apr 2001 08:01:25 +0000 (UTC)
Date: 2001-04-30T08:01:25+00:00	[thread overview]
Message-ID: <slrn9eq71u.1ac.randhol+abuse@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: slrn9eq5ht.13j.randhol+abuse@kiuk0156.chembio.ntnu.no

On Mon, 30 Apr 2001 07:35:48 +0000 (UTC), Preben Randhol wrote:
> and use this in the same way as the integer in the testing program I put
> up on the web, then the program start apparently to leak memory if I
> delete X nodes and then add X nodes again. The size of the memory goes
> perhaps from:
> 
>    8Mb -> 8Mb (after freeing I don't see a reduction in memory size) ->
>    12Mb (some increase, but not as high as 16Mb) or something like this,
>    this does not happen if I use Bounded_String. The problem with
>    Bounded_String however is that the memory consumption is 27Mb, well
>    not in a real situation, but for my testing now :-)

Correction:
If I use Bounded_String then it doesn't matter if I delete the first or
the Last Nodes, the memory pool is the same size, but if I reread the
nodes that I deleted then the memory does not increase. If I delete
all the nodes, the whole memory chunck is released.  

-- 
Preben Randhol ------------------- http://www.pvv.org/~randhol/ --
                 �For me, Ada95 puts back the joy in programming.�



  reply	other threads:[~2001-04-30  8:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-29 20:29 Problems freeing memory with Free Preben Randhol
2001-04-29 22:16 ` Florian Weimer
2001-04-30  7:35   ` Preben Randhol
2001-04-30  8:01     ` Preben Randhol [this message]
2001-04-30 13:23     ` Larry Kilgallen
2001-05-01 12:30     ` Florian Weimer
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox