[gtkmm] Re: [Re: [gtkmm]



MHL Schulze t-online de (Martin Schulze) wrote:
> This is only a technical note about the current gtkmm2 code to avoid
> misunderstandings:
> Using Glib::RefPtr<Foo>(new Foo()) doesn't work if Foo inherits
> Gtk::Object: The c++ wrapper Foo will never be deleted because the
> line "delete this" in Gtk::Object::destroy_notify_() is not executed
> unless "referenced_" is false, i.e. unless the object is manage()ed.

I suspect that this is true, and Daniel mentioned the same issue in Berlin.
But I'd like to see test code. Then we would at least know when we've fixed
it.


Murray Cumming
murrayc usa net
www.murrayc.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]