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 01:06:50 PST
Path:
archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: Problems with Mine Detector Game
Date: 07 Nov 2001 10:04:47 +0100
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Message-ID:
References: <3BE5C000.F5C23EC4@acm.org>
<3BE74824.696E58F9@acm.org>
<3BE89A6E.5C0039D1@acm.org>
NNTP-Posting-Host: avelizy-103-1-4-175.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: wanadoo.fr 1005124009 1794 80.11.102.175 (7 Nov 2001 09:06:49 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 7 Nov 2001 09:06:49 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
Xref: archiver1.google.com comp.lang.ada:15975
Date: 2001-11-07T09:06:49+00:00
List-Id:
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 !
> > There is something really weird here... either a corrupted memory or a
> > GNAT bug...
> >
> > What compiler did you use on Windows to build the binary ?
>
> 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.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"