After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 614996 - Add protected IntPtr constructors to ListView.
Add protected IntPtr constructors to ListView.
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: general
unspecified
Other All
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-04-06 18:25 UTC by Ruben Vermeersch
Modified: 2010-04-06 21:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add protected IntPtr constructors to ListView. (2.45 KB, patch)
2010-04-06 18:25 UTC, Ruben Vermeersch
committed Details | Review

Description Ruben Vermeersch 2010-04-06 18:25:55 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)
Comment 1 Ruben Vermeersch 2010-04-06 18:25:59 UTC
Created attachment 158069 [details] [review]
Add protected IntPtr constructors to ListView.
Comment 2 Gabriel Burt 2010-04-06 18:40:34 UTC
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
Comment 3 Ruben Vermeersch 2010-04-06 21:40:58 UTC
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