[Gtk-sharp-list] Could someone explain why this is crashing?

Sergio Duran Sergio Duran <sergioduran@gmail.com>
Fri, 18 Mar 2005 11:25:45 -0600


Well that error usually happends when you define an Widget in glade of
a certain type and then in your C# code you define it as a different
Widget.
Your widgets are commented, did you try [Glade.Widget] instead of [Widget]?
Try removing some widgets to see which one is causing problems, I'd
play with the GtkEntry first.

What version of gtk# are you using?

Sorry if I can't debug your code, but my boss would get mad if I dont
finish today with my code :)


On Fri, 18 Mar 2005 07:29:20 -0800 (PST),
mikeflippin@blindmindseye.com <mikeflippin@blindmindseye.com> wrote:
> I get this exception every time I try to a combo box, or anything else
> that is derived from Gtk.Container.
> 
> Unhandled Exception: System.ArgumentException: Object type cannot be
> converted to target type.
> Parameter name: val in <0x000b6> System.Reflection.MonoField:SetValue
> (object,object,System.Reflection.BindingFlags
> ,System.Reflection.Binder,System.Globalization.CultureInfo)
> in <0x00173> Glade.XML:BindFields (object,System.Type)
> in <0x00019> Glade.XML:BindFields (object)
> in <0x00016> Glade.XML:Autoconnect (object)
> in <0x00047> TestNewEntry:.ctor (string[])
> in <0x00027> TestNewEntry:Main (string[])
> 
> Could someone explain what is going on here?
> 
>