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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,dbbbb21ed7f581b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Operation can be dispatching in only one type Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <025105f2-5571-400e-a66f-ef1c3dc9ef32@g27g2000yqn.googlegroups.com> <94e76749-c49c-45aa-b7dc-386da0d71c66@e4g2000prn.googlegroups.com> <1u0im1tdws15u.1n9v9rz7bu4t4$.dlg@40tude.net> <39kf90ha60px$.d7746cf5cx6h.dlg@40tude.net> <691d6892-bc5e-4d81-8025-c36556bf2593@13g2000prl.googlegroups.com> <1h9hilcg5i6il.12edpgu4szw1h.dlg@40tude.net> <1wtsriaxu0s4s$.ikwnnz5teukp$.dlg@40tude.net> <1iipp3bn16fe2.yqa1gz1ru17a$.dlg@40tude.net> <18wh86jvjvoe0.cofxcc8udm6q$.dlg@40tude.net> <53a35ed9-88ac-43dc-b2a2-8d6880802328@j19g2000yqk.googlegroups.com> <4b091fb9$0$6567$9b4e6d93@newsspool4.arcor-online.net> <1w0q3zxzw79pt$.5z0juiky7kfd$.dlg@40tude.net> Date: Sun, 22 Nov 2009 17:42:40 +0100 Message-ID: NNTP-Posting-Date: 22 Nov 2009 17:42:38 CET NNTP-Posting-Host: a73c6f77.newsspool1.arcor-online.net X-Trace: DXC=71^o]bPMFTV1`E>oC;JXEZic==]BZ:af^4Fo<]lROoRQ<`=YMgDjhgRQ30`UN=@g4[[6LHn;2LCV^[ On Sun, 22 Nov 2009 08:27:59 -0800 (PST), xorque wrote: > On Nov 22, 4:25�pm, "Dmitry A. Kazakov" > wrote: >> The code is broken. It creates a temporal object and takes an access to its >> component. The obtained pointer is dangling. > > Not sure which part of the code you're referring to here. The function Open_Archive returns a new object. In Main you call it and then apply the function Stream to the result. Stream returns an access to the component File of the temporal object created by Open_Archive. Then this object is destroyed and a dangling pointer is assigned to S. When you call Integer'Inpit on S, it accesses a garbage. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de