> Well, the window callback function never gets called (?) so I put this code > in the class destructor and the w->parent() is NULL so there is no difference. > > My popup windows are dynamically created in a callback function of the menu > item on the main window. > Does this make a diference?
The more I think about it, the more I think you're SOL on this one. Fltk expects that the windows you create are going to stay around until the last one is hidden. You can reclaim the memory used by the windows themselves safely enough, but the memory overhead of maintaining a continually growing list of (inactive) windows, though fairly small, will just continue to grow, I think. Since you only have 1 subwindow at a time, is there some reason you can't reuse it, rather than destroying it and re-creating it each time? _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

