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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Exclusive file access Date: Mon, 31 Aug 2015 18:20:39 -0500 Organization: JSA Research & Innovation Message-ID: References: NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1441063239 7297 24.196.82.226 (31 Aug 2015 23:20:39 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 31 Aug 2015 23:20:39 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:27656 Date: 2015-08-31T18:20:39-05:00 List-Id: wrote in message news:e908c802-bc4b-4ad7-8c31-d8c155a8a484@googlegroups.com... > 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. Yes, test second occurrence on Janus/Ada raises Use_Error as well. My recollection is that getting Windows to do this requires opening files with a particular non-default flag. Probably GNAT does not do that (whether that is a bug or a feature is not for me to say). Randy.