My code is<br><br><div><span class="gmail_quote">-module(test).<br>-export([init/0]).<br><br>init() -><br> Gs = gs:start(),<br><br> Win = gs:create(window, Gs,[{map,true},{title,"Drainage Mine"},{width,620},{height,500}]),
<br><br> Cs = gs:create(canvas,CCs,[{width,620},{height,500},{bg,white}]),<br><br> gs:create(image,Cs,[{coords,[{50,50}]},{load_gif,"myImage.gif"}]),<br><br> loop(Cs,50,50).<br><br>loop(Cs,X,Y) -><br>
gs:create(image,Cs,[{coords,[{X,Y}]},</span><span class="gmail_quote">{load_gif,"myImage.gif"}),</span><br> loop(Cs,X,Y+20).<div><br>The problem is load_gif, each time a new gif is loaded in memory (the old ones aren't unloaded) so that the memory never stops growing... until overflow...
<br></div><br></div><br>