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

Fredrik Nilsson jymdman@home.se
Fri, 18 Mar 2005 22:56:07 +0100


Hi Mike,

My guess is that there is a problem with the Windows build you are
using. Your example work for me on Linux with mono 1.1.4 and gtk# from
svn.

/Fredrik

On fre, 2005-03-18 at 07:29 -0800, 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?