Marcel's right -- since your data's coming in slowly during the popen,
you'd either have to use a thread.. or you might be able to avoid threads
by using Fl::add_fd() with popen() as shown here:

        http://seriss.com/people/erco/fltk/#add_fd

This is one of the few instances where add_fd() should work across platforms
correctly.


Marcel Dejean wrote:
> Call popen() from another thread, so that the GUI can continue to run().
> 
> On 3/1/09, Greg Ercolano <[email protected]> wrote:
>> [email protected] wrote:
>>> I've been using FLTK to wrapper very complex engineering calculations..
>>      See Fl::check():
>>      http://fltk.org/documentation.php/doc-1.1/Fl.html#Fl.check
>>
>>      Call Fl::check(); within your calculation so that FLTK
>>      can have some CPU to keep the interface alive.
>>
>>      Or, run your calculation in a child thread, so that
>>      Fl::run() can run in the main thread to keep the interface alive.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to