[Gtk-sharp-list] mono fixes for GLib.Value & others

Vladimir Vukicevic vladimir@pobox.com
Sun, 23 May 2004 19:28:44 -0700

Hey Guys,

I just filed a patch for 
http://bugzilla.ximian.com/show_bug.cgi?id=58881 in bugzilla (last patch 
attachment).  GLib.Values were fairly broken because of this -- 
basically, any "ref GLib.Value" received from unmanaged code couldn't be 
trusted (as you would generally be working on a copy instead of the real 
thing), or any ref to other structs as well.

This had the potential of causing subtle bugs.. running with my patches 
fixes the marshalling issues, though now I'm now getting a
(<unknown>:26177): GLib-GObject-CRITICAL **: file gvaluetypes.c: line 
613 (g_value_get_int): assertion `G_VALUE_HOLDS_INT (value)' failed
with a stack trace that I haven't tracked down somewhere from within 
gtk#/gtk -- I'll have to track this one down to verify where that 
particular bug lies.

	- Vlad