Reloading images
Hi, When a pane goes "out of screen", i.e. when it is removed from its layout, it seems like all images loaded onto the pane are released. So when the pane is readded to the layout, references to those images are not valid and any attempt to use them leads to an exception. This has led me into a pattern like this: … in some display-callback (unless (and (slot-value pane 'loaded-image) (slot-value (slot-value pane 'loaded-image) 'gp::representation)) ;; Loaded image is not valid, so reload it (let ((image-object (gp:load-image pane (slot-value btn 'image)))) (setf (slot-value btn 'loaded-image) image-object))) While this works, it grows tedious if there are many images. Is there any way to avoid freeing of images while the pane is being hidden? Erik _______________________________________________ Lisp Hug - the mailing list for LispWorks users lisp-hug@lispworks.com http://www.lispworks.com/support/lisp-hug.html