[Gtk-sharp-list] refcounting, GC, and glade..

Vladimir Vukicevic vladimir@pobox.com
11 Oct 2002 23:12:39 -0700


Some more info.. if I change the code to load the data from disk,
instead of from the assembly, then the object does not get finalized.  I
think the issue here is that I'm not clear if the buffer passed to
glade_xml_new_from_buffer is then owned by the glade object; I don't
thinking it is, so I think this is purely an accident.

Looking further I see:

XML:~XML Handle: 137864024
XML:~XML Handle: 137864024
XML:~XML Handle: 137864024
(Mphoto:2095): GLib-GObject-CRITICAL **: file gobject.c: line 1307
(g_object_unref): assertion `G_IS_OBJECT (object)' failed
XML:~XML Handle: 137864024

Errrr.  I'm not passing this object around anywhere -- it's a private
member of my class, and only methods from this class call it.  So I'm
not sure why it (or versions of it with the same Raw pointer) is getting
finalized multiple times...

	- Vlad 

-- 
Vladimir Vukicevic <vladimir@pobox.com>