DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2780 Version: 1.3-feature It's possible to avoid the problem without changing the FLTK source code writing your function as follows, where Fl::check() triggers the real deletion of windows: void delete_all_windows(void *ud) { while(Fl_Window *win = Fl::first_window()){ Fl::delete_widget(win); Fl::check(); } } Moreover, Fl::delete_widget() is necessary to avoid errors when a callback function deletes its own window. But if you are not in this situation, writing delete win; does the job without using the deletion queue. Link: http://www.fltk.org/str.php?L2780 Version: 1.3-feature _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
