On Thu, Dec 22, 2011 at 9:15 AM, <michael.vancann...@wisa.be> wrote: > As I understand it, Delphi and Lazarus implement the former, and don't need > a timeout for it.
Ops, you are correct, it is a one shot event: http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/Forms_TApplication_OnIdle.html I think I implemented it as a repetitive event. ops =D I guess I'll need to fix this. But you should not try to compare directly the LCL gtk2 or qt4 widgetsets with fpgui since gtk2 and qt4 do most of the real work. Lazarus now has a X11 interface which can be used for direct comparisons and it uses the timeout. In general I don't fully trust select() to wakeup correctly yet. I guess that more testing would show if it does, but I read in the web that X11 could use more then one file descriptor for communication, so if I use a infinite select() the application could hang in some corner cases. -- Felipe Monteiro de Carvalho _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal