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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,884d34d0342bc569 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.190.104 with SMTP id gp8mr6023512pbc.4.1341079138604; Sat, 30 Jun 2012 10:58:58 -0700 (PDT) Path: l9ni3082pbj.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: yogeshwarsing@gmx.com Newsgroups: comp.lang.ada Subject: Re: memory leak with new GPS in GNAT GPL 2012 on Windows Date: Sat, 30 Jun 2012 10:58:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: <32f6a8d4-088b-4b9f-b390-16743672f56a@googlegroups.com> References: <36ae3508-2a3e-4cf7-b884-ea1873b2a2f5@googlegroups.com> <0513685d-9db7-4df9-8592-a463ccd175e9@googlegroups.com> NNTP-Posting-Host: 193.11.21.204 Mime-Version: 1.0 X-Trace: posting.google.com 1341079138 17434 127.0.0.1 (30 Jun 2012 17:58:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 30 Jun 2012 17:58:58 +0000 (UTC) In-Reply-To: <0513685d-9db7-4df9-8592-a463ccd175e9@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.11.21.204; posting-account=Rr9I-QoAAACS-nOzpA-mGxtAlZ46Nb6I User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-06-30T10:58:58-07:00 List-Id: > I am using WinXP Family edition 32bits with SP3 on single core Celeron. > I installed GNAT GPL 2012 but I noticed i must also change manually the e= nvironment variable PATH to use the updated gcc (I have GNAT GPL 2011 insta= lled). Otherwise GPS 2012 use the binaries from the 2011 distro. When installing GNAT GPL 2012, the item: C:\GNAT\2012\bin is added in the W= indows environment path. C:\GNAT\2011\bin will still be there but C:\GNAT\2= 012\bin will be written in the path BEFORE C:\GNAT\2011\bin and so GPS 2012= will use binaries from C:\GNAT\2012\bin. I think if you take away C:\GNAT\2012\bin from the path and then try to com= pile a program using the -gnat2012 switch (Project properties > switches > = Ada) then it won't run as then the binaries from the 2011 distribution woul= d be called and I do not think that the 2011 binaries were supporting the -= gnat2012 switch. > Task manager indicates 64 Megabytes of memory used by gps.exe with only 1= thread. > I can compile and run several demos with or without tasking and no crash = or leaks. > I also noticed of 4 Kbyte increment of memory every second even when I do= nothing. > I think the leak could come from the GTK library. A leak in GTK has alrea= dy been > reported on this forum. In my case when running the simple program below, I find an increase of 48 = kbyte every second even when GPS is idle. Here is the simple program that I= am running: with System.Dim.MKS; use System.Dim.Mks; with System.Dim.Mks_IO; use System.Dim.Mks_IO; with Text_IO; use Text_IO; procedure Free_Fall3 is subtype Acceleration is Mks_Type with Dimension =3D> ("m/s^2", Meter =3D> 1, Second =3D> -2, others = =3D> 0); G : constant acceleration :=3D 127137.6 * km/(hour ** 2) ; T : Time :=3D 10.0/3600.0 * hour; Distance : length; begin Put ("Gravitational constant: "); Put (G, Aft =3D> 2, Exp =3D> 0); Put_Line (""); Put ("Time: "); Put (T, fore =3D> 4, Aft =3D> 4, Exp =3D> 0); Put_Line (""); Distance :=3D 0.5 * G * T ** 2; Put ("distance travelled in 10 seconds (or 10/3600 hour) of free fal= l "); Put (Distance, fore =3D> 4, Aft =3D> 4, Exp =3D> 0); Put_Line (""); end Free_Fall3; Thanks.