[Gtk-sharp-list] Glade# problem with autoconnect.

Philipp Kern phil@philkern.de
Thu, 05 Aug 2004 03:45:16 +0200


Hi Mono and Gtk# developers,

I just began learning C# and Gtk#. I tried Glade# with MonoDevelop just
to see how to build up a GUI. But the following problem stroked me quite
seriously:

Unhandled Exception: System.ArgumentException: Object type cannot be converted to target type.
Parameter name: val
in [0x00057] (at /cvs/mcs/class/corlib/System.Reflection/MonoField.cs:122) System.Reflection.MonoField:SetValue (object,object,System.Reflection.BindingFlags,System.Reflection.Binder,System.Globalization.CultureInfo)
in <0x001c6> Glade.XML:BindFields (object,System.Type)
in <0x0001a> Glade.XML:BindFields (object)
in <0x0001c> Glade.XML:Autoconnect (object)
in [0x00036] (at /home/phil/study/csharp/Todo/Main.cs:54) Todo.TodoApp:.ctor (string[])
in [0x00001] (at /home/phil/study/csharp/Todo/Main.cs:16) Todo.TodoApp:Main (string[])

I created a very simple Gnome-Application within Glade, with just a vbox
which contains a menu bar with some menu items.
I attached both the Main.cs source and the glade GUI description.

I would be graceful for any hint on this issue, I tried Google, it shows
me indeed a result with the same error message, but in relation to the
(not yet supported) ComboBox element.

Thank you in advanced,
Philipp Kern