comp.lang.ada
 help / color / mirror / Atom feed
From: landgraf <pavel.y.zhukov@gmail.com>
Subject: Re: gnatcoll ORM memory leak
Date: Sat, 27 Apr 2013 01:00:31 -0700 (PDT)
Date: 2013-04-27T01:00:31-07:00	[thread overview]
Message-ID: <3983e511-2ecd-43ec-ae61-ec98326779b7@googlegroups.com> (raw)
In-Reply-To: <klf9c0$3e1$1@dont-email.me>

On Saturday, 27 April 2013 03:27:28 UTC+2, Jeffrey Carter  wrote:
> On 04/26/2013 02:49 PM, landgraf wrote:
> 
> >          declare
> 
> >              Ob : Detached_Ob'Class := New_Ob;
> 
> >          begin
> 
> >                  Ob := New_Ob;
> 
> 
> 
> Did you intend to call New_Ob twice and discard the result of the 1st call?
> 
> 
> 
> -- 
> 
> Jeff Carter
> 
> "My legs are gray, my ears are gnarled, my eyes are old and bent."
> 
> Monty Python's Life of Brian
> 
> 81
Yes, It' s my mistake in the reproducer. But there is not second "New" call in the original code.

Changed to:
    for i in 1..100 loop
        declare
            Ob : Detached_Ob'Class := New_Ob;
        begin
                Ob.Set_Name("myname" & I'Img);
                Session.Persist(Ob);
        end; 
    end loop;

But without resolt:
==1388==    definitely lost: 3,200 bytes in 100 blocks




  reply	other threads:[~2013-04-27  8:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-26 21:49 gnatcoll ORM memory leak landgraf
2013-04-27  1:27 ` Jeffrey Carter
2013-04-27  8:00   ` landgraf [this message]
2013-04-27  6:27 ` Simon Wright
2013-04-27  8:03   ` landgraf
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox