Re: Reference counting
- From: Murray Cumming <murrayc murrayc com>
- To: Paul Davis <pjdavis engineering uiowa edu>
- Cc: gtkmm-list gnome org
- Subject: Re: Reference counting
- Date: Thu, 28 Sep 2006 17:32:21 +0200
On Thu, 2006-09-28 at 10:27 -0500, Paul Davis wrote:
> I've tracked down what I think is going on.
>
> Calling the function:
>
> Glib::RefPtr<GooCanvas::ItemView> iv =
> _view->get_item_view( _text ) ;
Yes, I think you need to use the refreturn option to _WRAP_METHOD(). You
do in most (but not all) get*() functions that return RefPtrs.
> Causes the error:
>
> (simple:7359): GLib-GObject-CRITICAL **: g_type_interface_peek:
> assertion `instance_class != NULL' failed
>
> Program received signal SIGSEGV, Segmentation fault.
>
> Now, I'm pretty sure whats going on is that the reference counting is
> getting messed up.
>
> No idea if this is my fault or not thought....
>
> Any thoughts would be greatly appreciated.
>
> Paul
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]