accessing an object in a call-back



Hello,

I have a problem in a callback:

Button	b_start_stop->signal_clicked().connect(sigc::mem_fun(this,&
FenetreEnregistrement::DemarrerEnregistrement));

and in FenetreEnregistrement::DemarrerEnregistrement

anytime I try to use a function of the button, I get a core dump,
without any warning at the compilation:

b_start_stop->set_label("another_label");

-->give a core dump

Can you help me?

Am I allowed to change something on the button which called the
callback? I don't understand...


thks

Fabien Millerand





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