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,fe0d58e5e40e10c7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.hanau.net!news-fra1.dfn.de!news-lei1.dfn.de!news.uni-jena.de!not-for-mail From: Christopher Broeg Newsgroups: comp.lang.ada Subject: Re: many exceptions cause memory leak? Date: Mon, 24 Oct 2005 13:29:33 +0200 Organization: Friedrich Schiller University Jena, Germany Message-ID: References: NNTP-Posting-Host: ent.astro.uni-jena.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: lc03.rz.uni-jena.de 1130153377 31975 141.35.25.76 (24 Oct 2005 11:29:36 GMT) X-Complaints-To: abuse@uni-jena.de NNTP-Posting-Date: Mon, 24 Oct 2005 11:29:36 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050921 X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:5903 Date: 2005-10-24T13:29:33+02:00 List-Id: Hi, sorry that I didn't reply immediately. I was away over the weekend. From your replys I assume that ada should not waste memory by exception calls. Thanks for that. Well, my platform is suse Linux and I compile using GNATMAKE GAP 1.1.0 (20041209-323) I am by no means an expert in programming but I figured that all memory assigned by pointers is returned. I do not use my own storage pool but allocate just by is new... so it is all on the heap, I guess. The application is not large on your terms. It is just an a little more complicated numerical algorithm finding a few thousand solutions to a set of ordinary differential equations. Using spline interpolation for equations of state, and other physical quantities, it gets a little more complicated, though. Furthermore my data i/o is via a c binding to HDF5. I am not sure if may be the HDF5 library wasting the memory. It is not real problem, because the program usually finishes around a few 100 MB, but when I run the calculations on other peoples machines I don't want it to use so much (it is nice of them to allow the cpu load, already). Upon starting it only uses 46 MB. But increases steadily. Any suggestions how to find the memory leak? Thanks, Chris