(by the way, I tested this code on FreeBSD 5.4 with gtk-sharp-1.9.5 with mono 1.1.8.2 and it does the same thing)
http://base.rpmplus.com/files/crash.cs
http://base.rpmplus.com/files/crash.glade
--------------------------------------
I have a bit of sample code that produces the error when I do things under different circumstances:
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
in <0x00000> <unknown method>
in (wrapper managed-to-native) Gtk.Application:gtk_main ()
in <0x00007> Gtk.Application:Run ()
in <0x00038> Crash:Main (System.String[] args)
and when I reproduce the crash with gdb --args mono crash.exe I get:
0xb6ff6618 in gtk_accel_group_find () from /usr/lib/libgtk-x11-2.0.so.0
and my X session is locked up until I switch to a VT and kill gdb. It's a simple class derrived from Gtk.Window that uses glade to load widgets. I add NodeView with a NodeStore and some columns. Here's the wierd thing: if the nodestore has 100 elements in it, and I click either the File or Edit menu I get the above crash. But if I change the number of elements by setting the rowCount member to 10,000 then I don't get a crash on those menu items.
I'm running Ubuntu Linux 5.04 with Mono 1.1.8.1 and I've tried both gtk-sharp-2.5.5 and gtk-sharp-1.9.5.
I've included the glade file and the source file that cause the crash, I've compiled the crash.cs file with the command:
mcs -pkg:glade-sharp-2.0 crash.cs
I don't think it's nodestore related since I've gotten the same results with my own NodeStore-like (copied pretty much from NodeStore, C code and all) treemodel and my ManagedTreeModel (purely managed treemodel derrived from Vladimir's).
I'm puzzled.
--
Caleb Land
([EMAIL PROTECTED])
_______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
