Hello!!
I'm always with a good problem to share! eheh
I've made a key generator in order to automatic test stability of my software, 
and turned out that Fl::run() returns(exits) after a while.
I first tried a key generator of 20Hz, and it takes a lot of time to be in this 
condition, but with 50Hz(50 keys per second) it's very quick.
In my mainscreen I overwrote the handle to not do anything with FL_CLOSE or 
FL_HIDE and it goes there, but even with the return 1;(in FL_CLOSE and FL_HIDE) 
it returns from Fl::run(). Is there another way to return from Fl::run()? I'm 
pressuming FL queue reached a maximum size or something like that...

Another interesting fact, is that using Fl_Box(or even Fl_Label or Fl_Button) 
to draw label could be slow(at least in my software). I will explain better. If 
I use a buffer outside the Fl_Box/Fl_Label and when I change this buffer I just 
call (Fl_Box object)->redraw(), it's ok, it's fast. But if every time the 
buffer gets changed I call (Fl_Box)->label((new string array)); it gets slow. 
And in my software this is done in cycles(every 1/2sec), so it's making 
difference. Does anyone have a clue what could be or if I'm not using in the 
intended way? I could subclass Fl_Label to solve this problem, but I want to 
understand what is really happening.

Thanks in advanced.
Best regards,
J.Marcelo Auler

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

Reply via email to