Re: [[gtkmm] Destructor not called...]



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]