> 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.

Thanks, it took me a while to figure it out, but I think I see a way to make 
FL::add_fd() work for me -- I do have to re-structure my code a bit.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to