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 02:50:30 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Problems with Mine Detector Game Date: Wed, 7 Nov 2001 10:50:28 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <3BE5C000.F5C23EC4@acm.org> <3BE74824.696E58F9@acm.org> <3BE89A6E.5C0039D1@acm.org> NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1005130228 18860 129.241.83.82 (7 Nov 2001 10:50:28 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 7 Nov 2001 10:50:28 +0000 (UTC) User-Agent: slrn/0.9.7.2 (Linux) Xref: archiver1.google.com comp.lang.ada:15981 Date: 2001-11-07T10:50:28+00:00 List-Id: On 07 Nov 2001 10:04:47 +0100, Pascal Obry wrote: > > Jeffrey Carter writes: > >> > raised CONSTRAINT_ERROR : field-operations.adb:101 >> >> 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 ! It sounds odd that it is a GNAT bug as it works on Win9X/Linux. Perhaps you should reinstall. Preben -- Please, stop bombing civilians in Afghanistan. One cannot write off killing innocent children and other civilians as "collateral damage". A civilian is a civilian whether he or she is American or from another country in the world. http://web.amnesty.org/11september.htm