home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 December / Chip_2002-12_cd1.bin / zkuste / delphi / kompon / d23456 / SMPLTIMR.ZIP / readme.txt < prev    next >
Encoding:
Text File  |  2002-04-13  |  920 b   |  21 lines

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