> I modified the code to run PlotGraphs() in a newly created 
> thread in Start(). The GUI responses well. Can you please 
> explain to me the two scenarios I have?

In the first case, you are calling PlotGraphs() in a callback, so the
callback (and therefore the entire main thread) will block until
PlotGraphs() terminates.

And since the main thread is blocked, the GUI will not update.

When you put PlotGraphs() in a worker thread, the main thread is allowed
to run normally, and so the GUI updates and all is well.


I'm not sure exactly what you are trying to do, but your code looks
unnecessarily complicated for what it actually seems to be doing.
Perhaps you should simplify somewhat and see where you are, as I worry
that you may be digging yourself into difficulties...






SELEX Galileo Ltd
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

Reply via email to