[Gtk-sharp-list] GTK+/Gtk-sharp Win32 Issue

Todd Berman tberman@gentoo.org
Fri, 22 Aug 2003 12:06:02 -0400


	 I am in the middle of writing a fairly large gtk# application.

Part of the reason we are using gtk# is the cross-platform ability it
provides us. Up until now, everything was working fairly well, a bit
slower under windows, but that is to be expected.

However, at some points now, I am noticing very strange behavior. The
application has a list box on the left, and a notebook on the right,
when you select an item on the list box, it adds an item to the

When you click on item in particular *first* it crashes the application
with this error:

Unhandled Exception: System.NullReferenceException: Object reference not
set to an instance of an object.
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at SevenL.GypsyShell.Gypsy..ctor() in c:\Documents and
Settings\tberman\Desktop\NEsT\gypsy\SevenL\GypsyShell\Gypsy.cs:line 47
   at SevenL.GypsyShell.Gypsy.Main(String[] args) in c:\Documents and
Settings\tberman\Desktop\NEsT\gypsy\SevenL\GypsyShell\Gypsy.cs:line 52

However, when you click on a different item first and then click on the
troublesome item, there is no issue.

Obviously my code is doing this, and debugging it seems pointless as it
doesn't seem to happen under the dbgclr.exe win32 debugger.

Interestingly enough, this same code executes without any problem on

Now, I am wondering if this is completely something I can fix, or if the
version of gtk+ for win32 I am using is somehow not the greatest.

Right now I am using Dropline's Win32 GTK+ binaries.

Any help or pointers would be greatly appreciated.