Re: [gtkmm] signal connection problem



Matthew Walton a écrit :

cedric wrote:

void loadmodule()
{
   test toto ;
   adrmenuBar->addButton(toto.getButtonName());
//    adrmenuBar->addButton(toto);
}


The first thing that comes to mind here is what happens after the addButton call when the test object goes out of scope and deletes the MenuElem... I'm not sure about all this, but I don't think the MenuBar will copy it and keep its own copy, so you've probably got a data structure going missing somewhere.

yeeeeeeees!
i didn t think about it! thanks!!!
cedric




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