On Thu, Dec 22, 2011 at 9:51 AM, <michael.vancann...@wisa.be> wrote: > Strange statement. > > If select() didn't do its job correctly, neither Qt or Gtk could do their > job, or any network related program, for that matter.
It is not about select working or not, it is about how many file descriptors X uses to communicate: http://fixunix.com/xwindows/91558-xconnectionnumber-select.html#post301681 I don't have time in the foreseeable future to find in which wierd corner case XAddConnectionWatch is necessary and test that a implementation which I come up with works, but Qt could pay someone to stay all week testing wierd corner cases and find the most perfect algoritm. For me, timeouting every second is already more then good enough, it could even be each half second. Already at 50ms I could not see my application with top in the top 20 CPU users (most of which were using zero), so I seriously doubt the battery usage concerns unless someone really measures it. -- Felipe Monteiro de Carvalho _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal