[Gtk-sharp-list] Random NullReferenceExceptions in GLib

Todd Berman tberman@off.net
Fri, 06 May 2005 18:39:43 -0700


On Fri, 2005-05-06 at 17:00 -0700, Eric Butler wrote:
> My program is randomly throwing the following exception. Since it is in
> unmanaged code (and in the Gtk mainloop), I have no idea how to even
> begin debugging this. Can anyone please help? This is with Gtk# trunk.
> 
> Unhandled Exception: System.NullReferenceException: Object reference not
> set to an instance of an object
> in (unmanaged) 0x8ac9250
> in <0x00004> (wrapper managed-to-native) GLib.Object:g_object_unref
> (intptr)
> in [0x00099] (at /home/brady/sources/gtk-sharp/glib/Object.cs:65)
> GLib.Object:PerformQueuedUnrefs ()
> in <0x00048> (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_bool ()
> in [0x0000d] (at /home/brady/sources/gtk-sharp/glib/Idle.cs:46)
> IdleProxy:Handler ()
> in <0x00036> (wrapper native-to-managed) IdleProxy:Handler ()
> in (unmanaged) 0xb7f78a02
> in <0x00004> (wrapper managed-to-native) Gtk.Application:gtk_main ()
> in [0x00000] (at /home/brady/sources/gtk-sharp/gtk/Application.cs:99)
> Gtk.Application:Run ()
> in [0x002ce]
> (at /home/brady/sources/FileFind.Meshwork.GtkClient/src/Main.cs:192)
> gMeshwork:Go (string[])
> in [0x00008]
> (at /home/brady/sources/FileFind.Meshwork.GtkClient/src/Main.cs:72)
> gMeshwork:Main (string[])
> 
> Thanks :(

I am actually starting to see this too, not sure what is going on at
all, and it is also exposing itself under win32, so it is not linux
specific. I am wondering what has recently changed.

--Todd