On 21 December 2011 18:06, Henry Vermaak wrote: > embedded devices, laptops have batteries, too. You're wasting CPU and power > just spinning around a loop, so even if your app isn't active, it's still > waking up every 50ms. I don't consider this very good programming practice.
I'm always interested in improvements. The 50ms code was done purely to implement the Application.OnIdle() event. How else can I implement an OnIdle event then? -- Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal