Re: Generic Menu - HELP!!



On Fri, 2010-02-26 at 12:47 -0500, ArbolOne wrote:
> n an attempt to circumvent this problem I have written this method
> const Glib::RefPtr<Gtk::AccelGroup>& Menu::getAccelGroup(){
>     return this->RefUIManager->get_accel_group();
> }
> but this gives me a segmentation fault. 

Check pointers or smart pointers for null before dereferencing them. And
in general, use a debugger or valgrind to find these problems.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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