| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #1387
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 3 - Moderate, e.g. unable to compile the software |
Scope: | 2 - Specific to an operating system |
Subsystem: | WIN32 |
Summary: | fltk main loop hogs cpu, when window size becomes 0,0 |
Version: | 1.1-current |
Created By: | xovo |
Assigned To: | matt |
Fix Version: | 1.1-current (SVN: v5346) |
Update Notification: | |
Trouble Report Files:
No files
Trouble Report Comments:
|
#1 | xovo 12:13 Aug 03, 2006 |
| With the program below (which is a stripped-down version of a normal use case in my application) fltk uses 100% cpu. I'm aware that size 0,0 might not be really supported, but i would prefer fltk to handle this case instead of using a workaround.
-------------
#include <FL/Fl.H> #include <FL/Fl_Gl_Window.H> #include <stdio.h>
int main(int argc, char **argv) { Fl_Window *window = new Fl_Window(300,200); window->clear_border(); // no border!! window->show();
// wait some time Fl::wait(10.); window->size(0,0);
while(true) { printf("LOOP "); // doesn't wait.... Fl::wait(100.); }
return 0; } | |
|
#2 | matt 03:52 Aug 17, 2006 |
| On which operating system? | |
|
#3 | xovo 05:35 Aug 17, 2006 |
| that's on Windows XP | |
|
#4 | matt 04:50 Aug 23, 2006 |
| Fixed in Subversion repository.
Zero size windows countinously trigger WM_PAINT events. This is a knowns issue and a bug in WIN32. We now avaoid that by simply resizing windows to at least 1x1. If you need an invisible window, just hide it ;-) | |
[ Return to Bugs & Features ]
|
| |