home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / ChipCD_1.03.iso / zkuste / delphi / kompon / d23456 / SMPLTIMR.ZIP / demos / readme.txt
Text File  |  2002-10-29  |  999b  |  20 lines

  1. The SimpleTimer demo demonstrates the TSimpleTimer class. The TTimer demo
  2. is provided for comparison.
  3.  
  4. Two simple timers are started, and they write to a listbox at specific intervals.
  5.  
  6. You may experience that a timer sometimes fails to fire. This is not a bug. 
  7. Windows discards WM_TIMER messages if it's too busy processing other messages. 
  8. The same happens if you use TTimer. For comparison I made the same demo using two 
  9. TTimer objects. See for yourself.
  10.  
  11. Here's how to see the timer events get lost: Set Timer 1 and Timer 2 to a small
  12. interval (like 50 millisecs.). Start both timers. For each message from Timer 1
  13. there should now be a message from Timer 2 immediately after (the messages are
  14. added to the listbox). But sometimes a message gets lost and the listbox shows two 
  15. concurrent messages from the same timer.
  16.  
  17. This is more likely to happen the smaller the timer intervals are. The problem is
  18. less pronounced in Win2000 and XP, as they are better at multitasking.
  19.  
  20.