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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.4.7 with SMTP id 7mr4606923ywe.24.1440685624695; Thu, 27 Aug 2015 07:27:04 -0700 (PDT) X-Received: by 10.182.81.9 with SMTP id v9mr68144obx.40.1440685624641; Thu, 27 Aug 2015 07:27:04 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!us.feeder.erje.net!newspeer1.nac.net!border2.nntp.dca1.giganews.com!nntp.giganews.com!s36no1782745qgs.1!news-out.google.com!f6ni6896igi.0!nntp.google.com!u8no1041712igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 27 Aug 2015 07:27:04 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=188.62.56.211; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 188.62.56.211 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Exclusive file access From: gautier_niouzes@hotmail.com Injection-Date: Thu, 27 Aug 2015 14:27:04 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:27618 Date: 2015-08-27T07:27:04-07:00 List-Id: Hi Ahlan, I also get no exception with GNAT GPL 2014, Windows 7... But with ObjectAda 7.2.2 SE, on the same machine, the 2nd occurrence raises the expected Use_Error. Cheers Gautier NB: ready-to-compile variant below: with Ada.Text_IO; procedure Work is package Io renames Ada.Text_IO; The_File : Io.File_Type; begin Io.Open (The_File, Io.Out_File, "Test.Txt"); for Count in 1..100 loop Io.Put_Line (The_File, "Count =" & Integer'Image(Count)); Io.Put_Line ("Count =" & Integer'Image(Count)); delay 1.0; end loop; Io.Close (The_File); end Work;