David Barker wrote:
> The next thing I tried was to run the example. I loaded lispbuilder-sdl,
> lispbuilder-sdl-ttf and lispbuilder-sdl-ttf-examples. When I run
> (lispbuilder-sdl-ttf-examples:FONT-EXAMPLE) though I get an error:
> "SURFACE: SURFACE-FP must be a foreign pointer." and I am not sure what to
> do?
> 

The example works for me using SBCL which is weird as SBCL will usually
kick up a fuss while CLISP will run almost anything thrown at it.

I really need to add better error handling. But in any case, what seems
to be happening is that the CFFI function that creates the SDL Window is
not creating the SDL window. NIL or a NULL pointer is being returned to
the function that is supposed to create a new SURFACE object. This
function throws the error you are seeing. At least this is what I think
is happening thanks to my wonderful error handling described earlier.

Have you tried running any of the examples in the
lispbuilder-sdl-examples package? If you can manage then please do and
let us know if this same error is generated.

I've been procrastinating when I should have been working off the
numerous (501 and counting) SBCL notes and warnings generated by
lispbuilder-sdl (CLISP reports no issues). I'm trying to clear up most
of these which may hopefully shed more light on the problem you are
experiencing.

- Luke
_______________________________________________
application-builder mailing list
application-builder@lispniks.com
http://www.lispniks.com/mailman/listinfo/application-builder

Reply via email to