[Gtk-sharp-list] Glade# attribute problem

Mark Derricutt mark@talios.com
Tue, 08 Apr 2003 02:15:05 +1200


On Monday, April 07, 2003 13:20:48 +0100 Lee Mallabone 
<gnome@fonicmonkey.net> wrote:

> If I remember right, the [Glade.Widget] attribute was renamed in the CVS
> version.  It used to be [Glade.GladeWidget] which abbreviates to just
> [GladeWidget] if you have are 'using Glade'.

Sweeet - that compiles now.  Although still gives me null pointer 
exceptions when I have code that refers to the widget after the autoconnect:

  Glade.XML gxml = new Glade.XML("project2.glade", "window2", null);
	gxml.Autoconnect(this);
			
	button1.BorderWidth = 10;  // This causes errors - see below
			
	Application.Run();

[mark@spawn project2]$ mono project2.exe

Unhandled Exception: System.NullReferenceException: A null value was found 
where an object instance was required
in <0x00064> 00 GladeSamples.GladeTest:.ctor (string[])
in <0x00027> 00 GladeSamples.GladeTest:Main (string[])