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,48c24b3b7b6825bf X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news2.google.com!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Date: Wed, 18 May 2011 15:15:16 +0200 From: =?UTF-8?B?VGhvbWFzIEzDuGNrZQ==?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110501 Thunderbird/3.1.10 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: My XML/Ada code is leaking References: <4dd2e2c0$0$315$14726298@news.sunsite.dk> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4dd3c64c$0$305$14726298@news.sunsite.dk> Organization: SunSITE.dk - Supporting Open source NNTP-Posting-Host: 83.91.213.86 X-Trace: news.sunsite.dk DXC=iGXJNiF1kM3HcN9lh?6D[2YSB=nbEKnk;YS>gNWASTI>3ZOKe3?:>X1DZkco8YM<=;U`JRC]IM5=56^CnVHYR;`1 X-Complaints-To: staff@sunsite.dk Xref: g2news1.google.com comp.lang.ada:19295 Date: 2011-05-18T15:15:16+02:00 List-Id: On 05/18/2011 03:04 PM, Simon Wright wrote: > I've tried this on Mac OS X Snow Leopard both with GCC 4.6.0& XMLAda > from SVN and with GNAT GPL 2010& its XML/Ada. > > The leak detector is XCode / Instruments / Leaks, and shows no > leaks. Hmm. > > Leaks looks at the status on a regular basis, every 10 seconds by > default, so I added a 'delay 11.0' at the end. > > I tried adding a deliberate leak and Leaks spotted it. It didn't give me > any trace (beyond the address allocated, or perhaps from which the > allocation was made). Probably down to my ignorant fumblings! > Nevertheless, it looks as though there isn't a leak on the Mac. Well, that is interesting Simon. Is valgrind available for Mac? Maybe the issue is one of valgrind reporting a false positive. I've recently bought a Macbook Air, so maybe I should give it a whirl myself. Is it difficult to get GNAT/GPS up and running on Mac? -- Thomas Løcke Email: tl at ada-dk.org Web: http//:ada-dk.org http://identi.ca/thomaslocke