GNOME Bugzilla – Bug 614996
Add protected IntPtr constructors to ListView.
Last modified: 2010-04-06 21:40:58 UTC
Nobody knows why exactly you need them, but they do avoid crashes, like this one: Exception in Gtk# callback delegate Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception. GLib.MissingIntPtrCtorException: GLib.Object subclass Tripod.Model.Gui.PhotoGridView must provide a protected or public IntPtr ctor to support wrapping of native object handles. at GLib.ObjectManager.CreateObject (IntPtr raw) at GLib.Object.GetObject (IntPtr o, Boolean owned_ref) at Gtk.Widget.exposeevent_cb (IntPtr widget, IntPtr evnt) at GLib.ExceptionManager.RaiseUnhandledException() at Gtk.Widget.exposeevent_cb(IntPtr widget, IntPtr evnt) at Gtk.Application.gtk_main() at Gtk.Application.Run() at FlashUnit.Client.Main(System.String[] args)
Created attachment 158069 [details] [review] Add protected IntPtr constructors to ListView.
OK, I'm fine with this patch, except please remove the trace from the commit msg. I have finally filed a bug with Mono/Gtk# for this: https://bugzilla.novell.com/show_bug.cgi?id=594100 but it probably won't be fixed for some time if ever (maybe it truly is our issue). Also, change first commit msg line to [Hyena.Gui] Add protected IntPtr ctor to ListView
commit bbd4aaed8f32dec65a594dd04e57cd95df11bacf Author: Ruben Vermeersch <ruben@savanne.be> Date: Tue Apr 6 20:17:36 2010 +0200 [Hyena.Gui] Add protected IntPtr ctor to ListView Needed when a signal is raised after the object has been destroyed. Not sure if this is our bug (see novell bugzilla link). https://bugzilla.gnome.org/show_bug.cgi?id=614996 https://bugzilla.novell.com/show_bug.cgi?id=594100