> So I assume that my code should be: > Fl::lock(); > char str[32]; > //do smth > time2end->value(str); > Fl::unlock(); > Fl::awake(); > if this code is in a subsidiary thread?
Yes. > Thanks for the help. I've launched new version of the > project. I've changed Fl::flush() to Fl::redraw(). Why would you do this? My advice was to call Fl::awake(), and I suggested that not because it seemed like something worth trying, but because it is the *only* valid thing to do at that point. You can not and must not call Fl::flush(), or Fl::wait() or Fl::redraw() or etc in a subsidiary thread. None of these are valid in the context of the subsidiary thread, and unpredictable failures will result. This is covered in the documentation. > It will > take some time to throw an error :). I will try to use > awake() and will post result later. The result is likely to be that the Fl::redraw() based version still does not work and fails at odd places in odd ways. Calling Fl::awake() is the correct thing to do, and should work. Trying anything else is just wasting everybodies time. 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

