hello
It seems that when deleting items of Tk , the memory is never free. is
there a way to free memory?

this  code take 16Mb on my system:

require 'tk'

c=TkCanvas.new.pack
a=Array.new

for i in 1..10000
   a[i]= TkcOval.new(c,i,i,10,10)
end

for i in 1..10000
   a[i].delete
   a[i].destroy
   a[i]=nil
end
a=nil
GC.start

Tk.mainloop

(My real application sometimes takes more than 100Mb of memory !)

any idea ?

jf


-- 
 _________________________________________ 
/ do you play Go?                         \
|http://jeanfrancois.menon.free.fr/rubygo |
\                                         /
 ----------------------------------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||