home *** CD-ROM | disk | FTP | other *** search
- The demo demonstrates the TSimpleTimer class.
-
- Two simple timers are started, and they write to a listbox at specific intervals.
-
- You may experience that a timer sometimes fails to fire. This is not a bug.
- Windows discards WM_TIMER messages if it's too busy processing other messages.
- The same happens if you use TTimer. For comparison I made the same demo using two
- TTimer objects. See for yourself.
-
- Here's how to see the timer events get lost: Set Timer 1 to half the interval
- of Timer 2 (like 400 and 800 millisecs.). Start both timers. For each message
- from Timer 2 there should now be two messages from Timer 1. But sometimes a
- message from Timer 1 gets lost (and so is not added to the listbox).
-
- This is more likely to happen the smaller the timer intervals are. The problem is
- less pronounced in Win200 and XP, as they are better at multitasking.
-
- Troels Jakobsen
- delphiuser@get2net.dk
-
-