Am 08.05.2009 um 20:30 schrieb Mark Hoemmen:

> Frank Goenninger wrote:
>> In addition to the GDB session below I tried some more analysis on  
>> the
>> Lisp side:
>>
>> CL-USER> (foreign-symbol-pointer "glGetError")
>> 2510410464
>> CL-USER> (foreign-funcall-pointer (foreign-symbol-pointer
>> "glGetError") () :void :unsigned-int)
>> Received signal number 10 (Bus error)
>
> Wouldn't a "get" function either take or return a pointer?  Perhaps
> you're passing data of the wrong size that's getting interpreted as a
> pointer and then clobbered.
>
> mfh

Not really in this case. The function glGetError is defined as

GLenum glGetError(void);

So, no arguments passed. Just an unsigned int returned (that's what  
GLenum is typedef'ed to).

Cheers
    Frank

--
   Frank Goenninger

   Cell:        +49 175 4321058
   E-Mail:      f...@me.com






_______________________________________________
cffi-devel mailing list
cffi-devel@common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel

Reply via email to