<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yiv1187353057"><div id="yui_3_16_0_1_1435071923489_8028"><div style="background-color: rgb(255, 255, 255);" id="yui_3_16_0_1_1435071923489_8027"><div id="yiv1187353057yui_3_16_0_1_1435071923489_4406"><div id="yiv1187353057yui_3_16_0_1_1435071923489_4406" class="" style="">Hello.</div><div id="yiv1187353057yui_3_16_0_1_1435071923489_4406" class="" style=""><br class="" style=""></div><div id="yiv1187353057yui_3_16_0_1_1435071923489_4406" class="" style="">Please, can anybody tell me the correct way to display an image on an application pane?</div><div id="yiv1187353057yui_3_16_0_1_1435071923489_4406" class="" style=""><br class="" style=""></div><div id="yiv1187353057yui_3_16_0_1_1435071923489_4406" class="" style="">I tried the approach written in the "image-viewer" example, but when I run that example, the program leaks memory. Every time that the function draw-pattern* was called the memory reported by (room) increased and eventually SBCL runs out of memory so the game is over.</div><div id="yiv1187353057yui_3_16_0_1_1435071923489_4406" class="" style=""><br class="" style=""></div><div id="yiv1187353057yui_3_16_0_1_1435071923489_4406" class="" style="">I create the pattern with make-pattern-from-bitmap-file and then I display it with draw-pattern*. The code that shows up the problem is attached.</div><div id="yiv1187353057yui_3_16_0_1_1435071923489_4406" class="" style=""><br class="" style=""></div><div id="yiv1187353057yui_3_16_0_1_1435071923489_4406" class="" style="">I also include res.txt which collect the output of</div><div id="yiv1187353057yui_3_16_0_1_1435071923489_4406" class="" style=""><br class="" style=""></div><div id="yiv1187353057yui_3_16_0_1_1435071923489_4406" class="" style=""> (progn (sb-ext:gc :full t) (room))</div><div id="yiv1187353057yui_3_16_0_1_1435071923489_4406" class="" style=""><br></div><div id="yiv1187353057yui_3_16_0_1_1435071923489_4406" class="" style="">that I evaluated after each execution of the command that displayed the image. Thanks in advance for any suggestion.</div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;" dir="ltr" class="" id="yui_3_16_0_1_1435071923489_8205"><br></div></div></div></div></div></div></body></html>