[Gtk-sharp-list] Combo Bug?

Przemyslaw Sowa przemos@klub.chip.pl
Tue, 22 Jun 2004 20:11:53 +0200


I think I've found a bug.

I have a .glade file describing simple window with ComboBox (Class:
GtkComboBox in Glade) and following code:

[Glade.Widget] Combo comboRecorder; 

When I run the app I get this error:

Unhandled Exception: System.ArgumentException: Object type cannot be
converted to target type.
Parameter name: val
in <0x000bc> System.Reflection.MonoField:SetValue
in <0x001d9> Glade.XML:BindFields (object,System.Type)
in <0x0001a> Glade.XML:BindFields (object)
in <0x0001a> Glade.XML:Autoconnect (object)
in <0x00071> gBurnerExpress.EraseDialog:.ctor (Burn.Burner)
in <0x0002d> gBurnerExpress.GladeApp:OnButtonEraseClicked
in <0x0006a> (wrapper delegate-invoke)
in <0x00120> GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int)
in <0x00055> (wrapper native-to-managed)
GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int)
in (unmanaged) (wrapper managed-to-native) Gtk.Application:gtk_main ()
in <0x00004> (wrapper managed-to-native) Gtk.Application:gtk_main ()
in <0x00007> Gtk.Application:Run ()
in <0x000ad> gBurnerExpress.GladeApp:.ctor (string[])
in <0x00020> gBurnerExpress.GladeApp:Main (string[])

But when I change this widget to GtkComboBoxEntry (just for testing) it
works. I don't know what to do?

I'm using mono beta3 from go-mono.com on fedora2.

Przemyslaw Sowa