P
Peter B
Hello everyone!
Up until now I have used timers in my forms, where I read and write data to
file from the database, to prevent the auto-suspend mode to happen. The
timer calls SystemIdleTimerReset(); every tick (about 28s).
This has been working fine but since I need the functionality from different
places I thought it would be nice to use a Global static method that started
and stopped a global timer with the same time intervall instead of declaring
timers in each form.
The problem is that when a processor intensive operation is involved the
timer seem to lag several seconds... why is this? How come this didn't
happen when the timers where located in the forms? Is it possible to prevent
this? Should I just lower the timer intervall to e.g. 10s? What happens when
even longer processor intensive operations occurres?
Any help is appreciated!
/ P
Up until now I have used timers in my forms, where I read and write data to
file from the database, to prevent the auto-suspend mode to happen. The
timer calls SystemIdleTimerReset(); every tick (about 28s).
This has been working fine but since I need the functionality from different
places I thought it would be nice to use a Global static method that started
and stopped a global timer with the same time intervall instead of declaring
timers in each form.
The problem is that when a processor intensive operation is involved the
timer seem to lag several seconds... why is this? How come this didn't
happen when the timers where located in the forms? Is it possible to prevent
this? Should I just lower the timer intervall to e.g. 10s? What happens when
even longer processor intensive operations occurres?
Any help is appreciated!
/ P