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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.224.65.66 with SMTP id h2mr18456729qai.5.1411460518709; Tue, 23 Sep 2014 01:21:58 -0700 (PDT) X-Received: by 10.140.108.97 with SMTP id i88mr13809qgf.8.1411460518658; Tue, 23 Sep 2014 01:21:58 -0700 (PDT) Path: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!w8no62128qac.0!news-out.google.com!q8ni28qal.1!nntp.google.com!w8no62124qac.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 23 Sep 2014 01:21:58 -0700 (PDT) In-Reply-To: <14aahny7n1xxq.12aqg1nr0sro0$.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.176.73.77; posting-account=yiWntAoAAAC1KqC_shmxJYv07B9l6LNU NNTP-Posting-Host: 66.176.73.77 References: <4b9c517f-9c78-44f5-bda1-8e7647f06851@googlegroups.com> <14aahny7n1xxq.12aqg1nr0sro0$.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4a7d6542-d4c1-4d79-8def-d4b74e06dacd@googlegroups.com> Subject: Re: Using Class wide types as factories, is this legit? From: David Botton Injection-Date: Tue, 23 Sep 2014 08:21:58 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.dca.giganews.com comp.lang.ada:189099 Date: 2014-09-23T01:21:58-07:00 List-Id: > It is hard to say without seeing Initialize, Finalize and Adjust. I would > > guess that Adjust is wrong, e.g. not making a deep copy of the things > > killed in Finalize, which may lead to deallocating these twice in the first > > variant of your code. There is no adjust or finalize. Initialize looks like this: procedure Initialize (Object : in out Active_Record) is use Gnoga.Server.Database; begin if Object.Connection = null then raise Connection_Error; end if; Object.Fields := Object.Connection.List_Fields_Of_Table (Object.Table_Name.all); end Initialize;