> The fact that changing "delete win" to delete_widget(win)
> makes any difference is suspicious if you aren't doing this
> in a callback context.  Are you sure that the window's parent()
> is 0 when you delete the window?

My app consists of one window which calls other class/windows to create popup 
windows.
The popup windows are created and deleted everytime they are called to reduce 
amount of memory usage.
There is no way to have multiple popup windows and they are all modal.
The main window is never deleted so I guess the popup's parent is never 0 (?)
The popup window's callback is always called, then the class destructor calls 
delete_widget(window).
I do not understand what difference would it make where delete_widget is called 
as the sequence  is the same (?) when class/window closes.
I moved the delete_widget(window) to window's callback and no diference was 
noticed.

P.S. I am using the latest 1.1.x-r5953 version
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to