It was lazy programming, something like:
this.tmrCron.enabled = m.EnabledTimer
Now I have changed it to:
if this.tmrCron.enabled # m.EnabledTimer
this.tmrCron.enabled = m.EnabledTimer
endif
>Why would you enable a timer that is already enabled in the first place?
>
>>I have a container with a TIMER that has the INTERVAL set to 1 minute. It is ENABLED (or disabled) in the REFRESH of the container. That refresh is visited each 10 seconds.
>>
>>I noticed that the timer did no longer fire each minute if its ENABLED.property is explicitly set to True each 10 seconds.
>>
>>It does fire if I only set the ENABLED property if its new value differs from the current value.
>>
>>It seems as though the ENABLED property acts as some sort of RESET().
>>
>>Who can explain this? Or do I miss a clue?
Groet,
Peter de Valença
Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.