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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8b08fdee567996fd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-07 20:20:52 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3BEA0851.17E0C544@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Problems with Mine Detector Game References: <3BE5C000.F5C23EC4@acm.org> <3BE74824.696E58F9@acm.org> <3BE89A6E.5C0039D1@acm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 08 Nov 2001 04:20:50 GMT NNTP-Posting-Host: 209.86.200.149 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1005193250 209.86.200.149 (Wed, 07 Nov 2001 20:20:50 PST) NNTP-Posting-Date: Wed, 07 Nov 2001 20:20:50 PST Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Wed, 07 Nov 2001 20:16:51 PST (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:16034 Date: 2001-11-08T04:20:50+00:00 List-Id: Pascal Obry wrote: > > Jeffrey Carter writes: > > > This is puzzling. There should be no way that line can raise > > Constraint_Error. > > I understant that. That's why I said it is weird ! The fact is that if I > output (put_line) the value returned in PragmARC.Universal_Random.Random_Int, > the exception is not raised and the value seems fine. If I print the value > returned by this function on the caller side I get 0. Which is not a positive > hence the exception... So it is either some kind of corrupted memory, a GNAT > bug, or a build problem on my side ! This does look like a compiler error. I would not expect memory corruption to always result in zero. > > The binary was built using GNAT 3.13p and GtkAda 1.3.10 on Win98. > > > > FWIW, we have now built Mine_Detector with GtkAda 1.3.12 on Win98 with > > no problems. > > I have tested it on Windows 2000 with GNAT 3.14, 3.15 and GtkAda 1.3.12. Can you run the pre-built executable? There are 2 variables here, the compiler version and the Windows version. Would it be possible for you to obtain GNAT 3.13 and try that? That could eliminate one of the variables. -- Jeffrey R. Carter PragmAda Software Engineering