Hello. 2008/5/3 Luke Crook <[EMAIL PROTECTED]>: > css <[EMAIL PROTECTED]> writes: > > > I am saving some surfaces as > > slots of Objects. Mostly I create them when creating an instance (with > > make-instance), and passing it to the init-args. Well, this doesnt > > work. The slots are set to nil afterwards. > > What exectly do you mean by "saving some surfaces as slots of objects"? > > Do you mean that you create a Surface, then assign the Surface to a slot, > then > save the Lisp Image, exit, reload the Lisp image and expect that the slot > contains the Surface? This kind of persistance is not supported by > Lispbuilder.
No. I dont like saving Lisp Images, I never do (especially when using ffi-stuff). However, I think the problem was something similar. I used a weak hash table to save some surfaces. I never had problems with it, however, after using convert-surfaces, I cannot use the same surfaces after having stopped (or ended) my sdl:with-init context (and entering a new context, i.e. after running the program a second time). It seems like these references are not even deleted after explicitly calling the garbage collector. Now I still use a weak hash table, but I create it after entering the sdl-context. It works now - at least so far. Thank you. MfG CSS _______________________________________________ application-builder mailing list application-builder@lispniks.com http://www.lispniks.com/mailman/listinfo/application-builder