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-Thread: 103376,ec2a500cce3658c4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: Brian May Newsgroups: comp.lang.ada Subject: Re: Memory leak - What the ...? References: Date: Sun, 17 Oct 2004 10:45:07 +1000 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:NBKy6koM2eivUxv6wJI7ybu/CiU= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: dsl-202-173-153-89.vic.westnet.com.au X-Trace: news.melbourne.pipenetworks.com 1097973893 202.173.153.89 (17 Oct 2004 10:44:53 +1000) X-Complaints-To: abuse@pipenetworks.com X-Abuse-Info: Please forward all headers to enable your complaint to be properly processed. Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news-north.connect.com.au!news.alphalink.com.au!news.melbourne.pipenetworks.com!not-for-mail Xref: g2news1.google.com comp.lang.ada:5343 Date: 2004-10-17T10:45:07+10:00 List-Id: >>>>> "Alex" == Alex R Mosteo writes: Alex> Total number of allocations :3001 Alex> Total number of deallocations :3000 Alex> Final Water Mark (non freed mem) : 24 Bytes Alex> High Water Mark : 499.05 Kilobytes If it: a) allocates 3000 bytes. b) allocates 1 byte. c) frees the 3000 bytes allocation. You may find, you effectively still have 3001 bytes allocated (as far as the OS is concerned) because of memory fragmentation. The key issue, if you allocate 3000 bytes, does it reuse the memory or allocate more memory? Anyway, just a random thought; it may not be related to your issues in anyway. Nor have I research how modern memory allocation algorithms work anyway. -- Brian May