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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,564409da6c450633 X-Google-Attributes: gid103376,public From: Ken Thomas Subject: Re: OpenGl and ADA95 by Aonix Date: 1998/02/16 Message-ID: <34E80377.41C67EA6@ecs.soton.ac.uk>#1/1 X-Deja-AN: 325522433 Content-Transfer-Encoding: 7bit References: <6c0pv1$os9$1@front1.grolier.fr> <34E46D9D.2DE5@gsfc.nasa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: CCG Newsgroups: comp.lang.ada Date: 1998-02-16T00:00:00+00:00 List-Id: Stephen Leake wrote: > > Colson Eric wrote: > > I've seen in the package glut.ads for Gnat that the specification for > > GlutInit is: > > > > procedure glutInit (argcp : access Integer; > > argv : access Interfaces.C.Strings.Chars_Ptr); > > pragma Import (C, glutInit, "glutInit", "glutInit"); > > > > With Aonix, the problem is the parameters look like not to be recognize. I > > obtain at the moment of the execution the following message : > > "exception raised : constraint error > > exception message : access error" > > > > This means that you are passing a null pointer. If you post the code > that calls glutInit, maybe we can help more. > > -- > - Stephe You might also check that the prototype in C is void glutInit(int argcp*, char ***argv) and not int glut(... Ada cannot ignore the result of a function call as in C. Ken -- Dr K.S. Thomas Department of Electronics and Computer Science University of Southampton Highfield Southampton SO17 1BJ United Kingdom Telephone : (+44) 01703 592170 Fax : (+44) 01703 593903 email: kst@ecs.soton.ac.uk