Re: [[gtkmm] Destructor not called...]
- From: Murray Cumming <murrayc usa net>
- To: Daniel Sundberg <dss home se>, <gtkmm-list gnome org>
- Subject: Re: [[gtkmm] Destructor not called...]
- Date: Mon, 14 Oct 2002 14:30:56 +0100
Daniel Sundberg <dss home se> wrote:
> Hello
>
> Today I came across a strange problem. An example program that illustrates
the problem is attached to this mail. If you compile and run the program the
destructor in MyFrame is not called when the widgets are deleted using
>
> vbox1.children().erase(vbox1.children().begin(), vbox1.children().end());
Why do you expect them to be deleted? manage() causes child widgets to be
deleted when their containers are deleted. But they are no longer child
widgets if you remove them from the container.
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]