I have the next strange phenominum:
In my Desktop application I have 3 timers:
1st. lets the application download and analyze files and stores the extracted info in a file
2nd. only function of this timer is to display the time in 4 offsets; GMT, NL time, US-time and Hong Kong time
3rd. shows new received events in a label every 10 seconds, over and over (looping)
Timers 1 and 3 are running without problems from start till I stop the application.
Timer 2 stops after a couple of hours.
I did put a debug stop in the code when the timer stopped running and… it never stopped there, because de code was not executed anymore. So, my conclusion is that the timer was indeed stopped or disabled.
I added some code in Timer-3 to check the status of timer 2 and if it found the timer off, it should make the timer run again. When it found the timer disabled, it would enable the timer again.
[i] if DTS_World.DTS_Timer.Enabled = False then
DTS_World.DTS_timer.Enabled = True
end if
If DTS_World.DTS_timer.Mode= DTS_World.DTS_Timer.ModeOff then
DTS_World.DTS_Timer.Mode =DTS_World.DTS_Timer.ModeMultiple
End if[/i]
I did put debug stops between the if … end if statements, but the program never stopped there, so the conditions that timer-2 was ModeOff or disabled were never met.
Nowhere in the complete code is somewhere written that the timer should stop after a couple of hours. Sometimes after 1 hour, most of the times after 2-3 hours that the program was running.
Odd is that the other 2 timers keeps on running from the start till the stop.
I am searching for the cause for about a month now, it suddenly started to do this, but I was till now not able to find the cause of this.
Does anyone know what could cause this? I really have no clue.