On 03.07.2008, at 02:00, lisy wrote:

> i build a fl_double_window`s subclass draws some complex graphs  
> (only use fl_rect,fl_rectf,fl_line)to a dll, start with _beginthread

<http://www.fltk.org/documentation.php/doc-1.1/advanced.html#advanced>

"FLTK supports multiple platforms, some of them which do not allow any  
other but the main thread to handle system events and open or close  
windows.The safe thing to do is to adhere to the following rules for  
threads on all operating systems:

        • Don't show() or hide()anything that contains widgets derived from  
Fl_Window, including dialogs, file choosers, subwindows or Fl_GL_Windows
        • Don't call Fl::wait(), Fl::flush() or any related methods that will  
handle system messages
        • Don't start or cancel timers
        • Don't change window decorations or titles
        • The make_current() method may or may not work well for regular  
windows, but should always work for Fl_GL_Windows to allow for high  
speed rendering on graphics cards with multiple pipelines"


----
http://robowerk.com/


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

Reply via email to