From josrr at ymail.com Tue Jun 23 16:34:47 2015 From: josrr at ymail.com (=?UTF-8?Q?Jos=C3=A9_Ronquillo?=) Date: Tue, 23 Jun 2015 16:34:47 +0000 (UTC) Subject: memory leaks while drawing images Message-ID: <1855367179.4784560.1435077287987.JavaMail.yahoo@mail.yahoo.com> Hello. Please, can anybody tell me the correct way to display an image on an application pane? 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. 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. I also include res.txt which collect the output of ? ? (progn (sb-ext:gc :full t) (room)) that I evaluated after each execution of the command that displayed the image. Thanks in advance for any suggestion. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: room.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: prueba.lisp Type: application/octet-stream Size: 2292 bytes Desc: not available URL: