On 31 May 2008, at 14:59, Oguz Akyuz wrote:

> Hello,
>
> In FLTK 1.1.X, I'm observing unexpected delay in displaying window  
> contents, if I there is a CPU consuming operation before displaying  
> the window. I'm attaching an example code that shows this problem.  
> To compile it save it as test.cpp and just type:

Your code is basically invalid - you are creating a new window from a  
thread that is not the main thread. That is not supported by fltk,  
since it is not possible to do that on some of the platforms fltk  
supports.

Further, you have not activated fltk's thread support before showing  
your first window, in a threaded program.

You probably need to read chapter 10 of the manual about thread  
support, and work forward from there.



_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to