On 02/05/2008, css <[EMAIL PROTECTED]> wrote: > 2008/5/3 Luke Crook <[EMAIL PROTECTED]>: > > > css <[EMAIL PROTECTED]> writes: > Ah. And another thing I noticed when changing my program (before I did > this, I loaded the surfaces before I opened the window): If you write > (sdl:convert-surface :surface (sdl:create-surface 200 200)) without > having yet opened an sdl-window, sbcl gets a memory error, and clisp > just segfaults. I know that the similar thing cannot be done with sdl > under C, but I think a CL-Library-Binding should not segfault, and > maybe you should consider this as a bug.
You need to make sure SDL is initialised before calling functions like create-surface. Is it possible that it is not? You could try the same sequences you are doing in C and see if you get the same crash. No program should segfault, but once you start calling functions in foreign libraries, it is very easy to run into them. Justin _______________________________________________ application-builder mailing list application-builder@lispniks.com http://www.lispniks.com/mailman/listinfo/application-builder