From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,466b8f87784a3756 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-30 01:01:25 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!uio.no!ntnu.no!randhol+abuse From: randhol+abuse@pvv.org (Preben Randhol) Newsgroups: comp.lang.ada Subject: Re: Problems freeing memory with Free Date: Mon, 30 Apr 2001 08:01:25 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <87vgnn5p3q.fsf@deneb.enyo.de> NNTP-Posting-Host: kiuk0156.chembio.ntnu.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: tyfon.itea.ntnu.no 988617685 24174 129.241.83.82 (30 Apr 2001 08:01:25 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Mon, 30 Apr 2001 08:01:25 +0000 (UTC) User-Agent: slrn/0.9.7.0 (Linux) Xref: newsfeed.google.com comp.lang.ada:7038 Date: 2001-04-30T08:01:25+00:00 List-Id: 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.�