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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,20b3b2fc48674108 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-05 07:54:10 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!154.32.99.10.MISMATCH!psiuk-p2!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Preferred method for bringing in operators Date: Thu, 5 Jul 2001 10:04:45 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9i1s60$3o8$1@nh.pace.co.uk> References: <9ht50b$dk6$1@nh.pace.co.uk> NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 994341888 3848 136.170.200.133 (5 Jul 2001 14:04:48 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 5 Jul 2001 14:04:48 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:9472 Date: 2001-07-05T14:04:48+00:00 List-Id: I've got a couple of cases where attempting to read or write tagged records from/to a stream file ends up raising Program_Error if the tagged types are derived from Ada.Finalization.Controlled. If you change the code to *not* derive from Controlled, it works fine. The examples that illustrate this are a bit long and hard to cut down to manageable size. IIRC, I reported at least one instance of it to ACT, so maybe they looked into it & fixed it. I'm wondering if maybe similar problems exist elsewhere. I'd kind of like to test the code I've got that does this against a different compiler to gain some insight into its correctness or possibly find alternative ways of getting the job done. Its a kind of a tough spot when dealing with data structures where you want to go "I'd like to save this to a stream file *and* I'd like to control what happens to it on assignment" and have to make a choice between one or the other. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ wrote in message news:Ibs07.149836$%i7.100699762@news1.rdc1.sfba.home.com... > Crash how? I haven't noticed any problem (yet) - what should be > avoided?