FLTK logo

Re: [fltk/fltk] Add a function to close all windows and return from Fl::run() (Issue #498)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Add a function to close all windows and return from Fl::run() (Issue #498) ManoloFLTK Sep 14, 2022  
 

Here is what the user originally wrote :

The issue is that calling system exit(), although simple, does not return from Fl::run() and destructors do not get called.

I would therefore tend to believe the new function should delete all windows and subwindows rather than hide them, because if they're only hidden, Fl_Window_Driver objects will be destroyed, but Fl_Window objects won't be. Class Fl_Window_Driver is not accessible to FLTK users, so program resources are likely to be stored in Fl_Window controlled-structures.

Does this make sense at all in terms of program resources if exit() is called after window destruction ? That is, wouldn't program resources be equally freed with and without the new function? If yes, the new function would make sense only if the program continues windowless after the function call. I may have missed something from the previous discussion.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/498/1246886355@github.com>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.