[Gtk-sharp-list] Glade-Sharp, .NET and Mono
Francisco T. Martinez
martinf@mfconsulting.com
Wed, 25 Aug 2004 12:56:15 -0500
I would recommend that you double check the steps in the included Glade#
Quick start tutorial. Please pay particular attention at the items
being discussed after Figure 3:
- Check your Application's default Namespace
- Insure that your Gtk# related assembly references are set to copy
local. In other words, that they live side by side (in the same
directory) the executable or library output module you are producing.
Paco
Alessandro Lendaro wrote:
> Windows 2003 Server.
> .NET Framework 1.1, Mono+Gtk-Sharp combined 1.0.1 rev 0.5d
>
> I have a simple app that builds a (fairly) complex GUI
> from .glade file.
>
> I tried to compile and execute it with both .NET and Mono.
>
> The reult as follows:
> -.NET:
> the app crashes on Autoconnect() method of the Glade.Xml class
>
> The output:
>
> Errore: La chiave non puņ essere null.
> Nome parametro: key
> at System.Collections.Hashtable.ContainsKey(Object key)
> at GLib.ObjectManager.GetValidParentType(IntPtr raw)
> at GLib.ObjectManager.CreateObject(IntPtr raw)
> at GLib.Object.GetObject(IntPtr o, Boolean owned_ref)
> at GLib.Object.GetObject(IntPtr o)
> at Glade.XML.GetWidget(String name)
> at Glade.XML.BindFields(Object target, Type type)
> at Glade.XML.BindFields(Object target)
> at Glade.XML.Autoconnect(Object handler)
> at eLePhantGTK.CeLePhantGTK..ctor(String elink, Mutex in_Mutex) in
> e:\projects\vs8\elephantgtk\elephantgtk\celephantgtk.cs:line 110
>
> Translated:
> Error: key cannot be null
>
> This means something has gone wrong when calling
> Glade.XML gxml = new
> Glade.XML(@"E:\Projects\VS8\eLePhantGTK\eLePhantGTK\Resources\gui.glade",
> null, null);
>
> This happens also if I load the glade from file and not as a resource,
> and even if the glade file is reduced
> to a single window.
>
>
> -Mono:
>
> The GUI loads without problems.
> When I close the application though I get the following warnings:
>
> (<unknown>:2040): Gdk-WARNING **: gdk_property_delete: General case
> not implemented
>
> (<unknown>:2040): Gdk-WARNING **: window 0x00100582 unexpectedly
> destroyed
>
>
> ... what reason could those be for?
>
> Thanx in advance to anyone helping.
>
> Bye.
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list