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-7-bit X-Google-Thread: 103376,345a8b767542016e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-14 13:07:51 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: anh_vo@udlp.com (Anh_Vo) Newsgroups: comp.lang.ada Subject: Re: memory leakages with Ada? Date: 14 Mar 2002 13:07:50 -0800 Organization: http://groups.google.com/ Message-ID: <5a59d6a9.0203141307.27e3aac@posting.google.com> References: <3c90af1e@news.starhub.net.sg> NNTP-Posting-Host: 65.168.132.186 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1016140071 17927 127.0.0.1 (14 Mar 2002 21:07:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 14 Mar 2002 21:07:51 GMT Xref: archiver1.google.com comp.lang.ada:21249 Date: 2002-03-14T21:07:51+00:00 List-Id: For Ada95 I have developped a simple utility package to detect memory leaks. Most of all, it can pinpoint where the leaks occur. Thus, memory leaks can be fixed. The source code is available on www.adapower.com/lang/mempool2.html. In addition, I do have the latest version. I can email to you if requested. By the way, GNAT-3.14p has package called GNAT.Debug_Pools. It can be used to detect memory leaks also. Kilgallen@SpamCop.net (Larry Kilgallen) wrote in message news:... > In article <3c90af1e@news.starhub.net.sg>, "Calvin Ow" writes: > > > Has Ada got any memory leakage problems like that of C? > > Ada95 has several additional capabilites to guard against memory leaks. > It is possible to bypass most checks in Ada, so one could encounter > just as much trouble in Ada if one attempted to transliterate a C > program into Ada while retaining every aspect of the C design. > > > Especially with the use of Pragma calls to C? > > If you call from Ada to C, the portion that is written in C is > fully empowered to leak all the memory it wants :-) Thus the > question of memory leaks when doing that boils down to an > issue of whether the C code is well written.