[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtkmm
Subject:    Re: Reference counting
From:       Murray Cumming <murrayc () murrayc ! com>
Date:       2006-09-28 15:32:21
Message-ID: 1159457541.6321.1.camel () localhost ! localdomain
[Download RAW message or body]

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

_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic