Re: Glib::RefPtr



How do you create m_pFrame, and what do you do with it between creating it and finding it to be 0?

It sounds to be like you might be Gtk::manage()ing it and then adding it to a container, in which case, that container sinks the floating reference and takes over ownership completely. If so, you'd need to not do that; have it as a non-pointer member and just hand out observing references/pointers to it.



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