> I have seen a few posts saying its bad/illegal to do GUI > calls from threads other than main (where the widgets were created).
Yes - it's considered a Bad Thing, becaue many platforms have issues with it, depending on how the window manager or graphics layer work, so the only safe, "lowest common denominator" thing to do is to only access the GUI from the main thread. Note that a lot of platforms do actually work, sort of, but it isn't portable, and may show some spurious behaviour. Which rather sounds like what you are seeing. You probably need to read chapter 10 of the 1.1.8 docs, as a starting point. > A few weeks ago I inherited some code that uses FLTK 1.1.7 > and does exactly that. I'm running on an ARM under linux. Graphics layer? Window manager...? > Besides main, there are a couple other threads that call > show, hide, and label. Probably others too, but those are > the most common. As long as you do the Fl::lock(), Fl::unlock() dance, that's probably OK. If you aren't doing the lock/unlock cycle, then that's a Bad Thing. It seems from later in your past that you *are not* doing the locks. You need to add them, they should help. The *really important* thing is never to create or delete any GUI widgets outside the main thread, as that will *really* screw things up. SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

