[Gtk-sharp-list] problems with GdkWindow

Thomas 'Dent' Mirlacher dent@cosy.sbg.ac.at
Thu, 27 Feb 2003 10:21:36 +0100 (MET)


hi list,

running this testcase fails:

using Gtk;
using Gdk;

public class Test {
        public static void Main(string[] args)
        {
                Application.Init();

                Gtk.Window win = new Gtk.Window("scrolling");
                Gdk.Window gdkwin = win.GdkWindow;

                win.ShowAll();

                Application.Run();
        }
}

... with the exception:

Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was requiredin (unmanaged) 06 GtkSharp.ObjectManager:gtksharp_get_type_name (intptr)
in <0x00004> 06 GtkSharp.ObjectManager:gtksharp_get_type_name (intptr)
in <0x00050> 00 GtkSharp.ObjectManager:CreateObject (intptr)
in <0x000b3> 00 GLib.Object:GetObject (intptr)
in <0x0004e> 00 Gtk.Widget:get_GdkWindow ()
in <0x0004f> 00 .Test:Main (string[])


thanks for any ideas, help ...

	++Thomas

-- 
"They that can give up liberty to obtain a little temporary safety
 deserve neighter liberty nor safety" - Benjamin Franklin