From: Peter E. <Pet...@at...> - 2003-01-16 17:54:42
|
Does it do anything else besides use the timers to trigger events? I'm wondering if it gets hung up somewhere else in the code that you can maybe add a DoEvents() or Update() -----Original Message----- From: Jonathan Southwick [mailto:jso...@al...] Sent: Thursday, January 16, 2003 12:28 PM To: per...@li... Subject: [perl-win32-gui-users] Timers 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 jso...@al... Technical & Network Services Allegheny College, Meadville, PA 16335 (814) 332-2755 ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ Perl-Win32-GUI-Users mailing list Per...@li... https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users |
From: Jonathan S. <jso...@al...> - 2003-01-16 18:02:19
|
There are other events that usually get triggered but they do not get triggered during this test I am doing because the application is sitting on the taskbar while all this is happening. Jonathan At 1/16/2003 12:55 PM, Peter Eisengrein wrote: >Does it do anything else besides use the timers to trigger events? I'm >wondering if it gets hung up somewhere else in the code that you can maybe >add a DoEvents() or Update() > >-----Original Message----- >From: Jonathan Southwick [mailto:jso...@al...] >Sent: Thursday, January 16, 2003 12:28 PM >To: per...@li... >Subject: [perl-win32-gui-users] Timers > > > >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 >jso...@al... >Technical & Network Services >Allegheny College, Meadville, PA 16335 >(814) 332-2755 > > > >------------------------------------------------------- >This SF.NET email is sponsored by: Thawte.com >Understand how to protect your customers personal information by >implementing >SSL on your Apache Web Server. Click here to get our FREE Thawte Apache >Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en >_______________________________________________ >Perl-Win32-GUI-Users mailing list >Per...@li... >https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users |