> Like Ian said, if you delete a Window or Group, all children inside > that group will automatically be deleted as well. > > If you are concerned about popping up dialogs all the time, you > should consider building each dialog only once, and then calling "show > ()" and "hide()" on them. That will keep memory usage constant and > fragmentation minimal. > > If you pop up a lot of custom dialogs, simply deleting the top level > widget will completely clear all dependen widgets as well. > > Finally, if you plan to exit your application, don't delete a thing. > Just let the OS do the job. Ian mentioned that already, too.
Ok, gotcha. I don't intend on popping up millions of dialogs in my application, what I meant more was allocating other things, like buffers for images to blit, etc. Those things should definitely be freed by me when no longer required. Of course the widgets themselves may not use much memory, but if I go an allocate a buffer for a sequence of high resolution images, I should manage the memory for them carefully. Thanks for the comments. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

