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,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-29 13:29:46 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uio.no!ntnu.no!randhol+abuse From: randhol+abuse@pvv.org (Preben Randhol) Newsgroups: comp.lang.ada Subject: Problems freeing memory with Free Date: Sun, 29 Apr 2001 20:29:45 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: 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 988576185 6015 129.241.83.82 (29 Apr 2001 20:29:45 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Sun, 29 Apr 2001 20:29:45 +0000 (UTC) User-Agent: slrn/0.9.7.0 (Linux) Xref: newsfeed.google.com comp.lang.ada:7035 Date: 2001-04-29T20:29:45+00:00 List-Id: Hi I need some help because now I have been looking at this problem for 3 days and I cannot find the solution. I have made a double linked list which seems to preform correctly using a debugger. The problem however is that if I delete all the Nodes except the last and at the same time look at the programs memory usage with "top" under Linux, it reports the same amount of memory all the time. If it then delete the last node too, the memory suddenly drops down to the expected value (that is same as before the nodes were made). If I also delete all the nodes starting from the second node until the last, but not the first, the memory drops. I cannot figure out the error, so if somebody could be so kind to look at it and help me spot the error I would be very glad. I'm probably blind to the error after staring at the source for so long. The source can be downloaded and viewed here: http://www.pvv.org/~randhol/Ada95/Double/ Thanks in advance! PS: The list is for an educational program I'm making and will release under GPL as soon as I can get the list to work properly... -- Preben Randhol ------------------- http://www.pvv.org/~randhol/ -- �For me, Ada95 puts back the joy in programming.�