I have some code that uses the Timer object but it doesn't always work correctly. My code grabs the time when the program is run and determines how many minutes and seconds are left until the next hour. A timer event is fired on the hour that kills the current timer and creates a new timer that fires an event every hour.

It works for a few hours and then all of the sudden it is off by 5 seconds or so. It doesn't seem to be consistent either. Sometimes it will work correctly for 16 hours or so and then the timing is off and sometimes it works for only one hour and then the timing is off.

Does anyone know why this happens?  Can it be fixed?

Jonathan

Jonathan Southwick
[EMAIL PROTECTED]
Technical & Network Services
Allegheny College, Meadville, PA 16335
(814) 332-2755


Reply via email to