One thing is the first lock call should be in the main thread since it does some initialization...
Well actually the docs say the Fl::lock() should be before any call to Fl::run() or Fl::wait(). In this example the main thread does no call to Fl::run() or Fl::wait() until the splash screens are finished. Actually it would not have to do so later on, because the dispatch loop in the thread continues. ..(but still would have that window closed clean up issue until the main loop started). At least in this demo, there is no such issue! Nevertheless I know this implementation is somewhat awkward and maybe just works out of coincidence - I'm no threading expert.. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

