On 8/8/21 5:54 PM, Rodolfo Borges wrote:
My program have a "splash" window that shows before the "main" window.On my machine (Windows 7) it works fine, but on my partner's machine (Windows 10) the program abruptly ends as soon as I call hide() on the splash window.
(On Linux and Mac it works ok, too.)Any ideas?
FLTK's Fl::run() returns when there's no windows open, so
make sure you show()
the main window just before hide()ing the splash window.
I assume you're using an Fl::add_timeout() to trigger the
mainwin->show() and
splashwin->hide(), so just be sure to do them in that
order.
You want to avoid having /no window/ open even for a short
time,
or the event loop will think the app has completed.