|
|
> Is there a precedence that needs to be followed in deleting
> widgets that were created? I have a dialog window and in the
> destructor I am trying to delete everything that I new'd in
> the constructor. I have been getting core dumps. When I moved
> the delete of an Fl_Scroll to after the deletion of the
> widgets that are in it, the blowup has gone away.
Not sure exactly what your circumstance is, but I've pretty much always gone with deleting things in the reverse order they were created. And always remove "contents" before removing the "container".
So far, so good...
--
Ian
[ Direct Link to Message ] | |
|
| |