On Mar 24, 2007, at 1:12 PM, Alex wrote: > I guess its no biggie if I don't delete the windows, since they > usually will always be required while the application is running. > But for other uses, I think I definitely need to free any resources > that are no longer required, since if I just keep allocating and > allocating without ever freeing, I will run out of memory quickly. > Then you will see in your performance monitor that your application > is hogging 500 MB of RAM doing nothing.
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. ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

