From: David Espada Date: 2004-07-01T23:22:55+09:00 Subject: Re: [ruby-gnome2] general memory problems with ruby-gnome2? El mi�rcoles 30 de junio, Lennon Day-Reynolds escribi�: > First, as a simple debugging tool, add a log of the GObjects left in > memory after certain major operations with something like the > following: > if DEBUG > GC.start > ObjectSpace.each_object(GLib::Object) {|o| > STDERR.puts "#{o.inspect} :: #{o.ref_count} > } > end Good! I have probed many things. Now I Know where is the problem (main problem, at least). When I use Gtk::NoteBook in a data window, there is no parent for the pages of that. So, when I destroy window, pages with ALL their contents survive in memory until application hangs. If I do: signal_connect('destroy') do children.each do |c| c.destroy end end in NoteBook constructor, problem dissapears and all memory frees normally (or so I think). Thanks for your help with debugging method :) Greets. David