[Gtk-sharp-list] Glade-Sharp, .NET and Mono

Alessandro Lendaro lendaro@basic.net
Wed, 25 Aug 2004 10:12:06 +0200


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.