Hi !

In the code sample you provide, there is no apparent reason explaining that your program crashes.

There is one thing you should ensure : the pointer passed to box->add and the one passed later to box->remove should both point to the same address.

Guillaume

Le 02/12/2009 11:54, gafferuk a écrit :
hi, for example i have a vbox and a button.

heres the code:

Gtk::VBox *box = new Gtk::VBox();
Gtk::Button *button - new Gtk::Button();

box->add(*button);


later on i wish to remove this button but i wish to keep it to be used later
on.
if i simple goes box->remove(*button) my app simply crashes.

what am i doing wrong?

thanks.

_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to