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,75d2eb9e2e52a8c5 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!34g2000pru.googlegroups.com!not-for-mail From: Rod Kay Newsgroups: comp.lang.ada Subject: Re: Problem where a function is invoked once but called twice (when invocation is within an allocator). Date: Sat, 7 May 2011 02:45:46 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3eddb466-7d7b-49b2-8c1e-16486459f824@34g2000pru.googlegroups.com> References: <87r58dxeia.fsf@mid.deneb.enyo.de> <17caa8eb-8113-4199-83b7-9b199887a758@k15g2000pri.googlegroups.com> <4dc50b7b$0$7665$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: 110.174.207.98 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1304761547 3934 127.0.0.1 (7 May 2011 09:45:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 7 May 2011 09:45:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 34g2000pru.googlegroups.com; posting-host=110.174.207.98; posting-account=Uqu8JwoAAADsGt83KB06QWEVsML1fPO7 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Ubuntu/10.04 Chromium/11.0.696.57 Chrome/11.0.696.57 Safari/534.24,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:20155 Date: 2011-05-07T02:45:46-07:00 List-Id: On May 7, 7:06=A0pm, Georg Bauhaus wrote: > > First, I can confirm that on Mac OS X the assembly listing > of tester shows three calls, too: > > $ grep _media__video__next_frame build/tester.s > =A0 =A0 =A0 =A0 call =A0 =A0_media__video__next_frame > =A0 =A0 =A0 =A0 call =A0 =A0_media__video__next_frame > =A0 =A0 =A0 =A0 call =A0 =A0_media__video__next_frame > $ Thanks for the info. > The following appears to be generating two calls only, FWIW: > > =A0 =A0 the_Movie : media.Video.view :=3D media.Video.new_Video ("xyz.avi= "); > > =A0 =A0 Case_1 : =A0 =A0 =A0 =A0openGL.Image :=3D the_Movie.next_Frame; > =A0 =A0 Workaround : =A0 =A0openGL.Image renames The_Movie.Next_Frame; > =A0 =A0 Case_2 : access openGL.Image :=3D new opengl.Image' (Workaround); > Heh, this is indeed how I ended up tackling the problem in the real source :).