G
Guest
Hi all,
Below is the code I'm using to create the timer:
TimerCallback timerCollectDelegate =
new TimerCallback(charge.ChargeStatus);
System.Threading.Timer CollectTimer =
new System.Threading.Timer(timerCollectDelegate,
null, 0,
2000);
I'm developing a PocketPC application using .NET CF.
In my application, I want to use timer callback ,so that after a specified
time interval I'm able to do some logging operation continuously.
I've implemented this and the build is also successful.
However, I observe the following:
When my application alone running it seems to log the details perfectly
on
to the specified file after a duration of 10 seconds as specified in the
callback function argument .
When I try to open another application at the same time, however logging
into the file stops and the timer no longer seems to be working.
I'm using a PDA with PocketPC2002 with PXA250 processor.
Can some please help?
Why is the timercallback not getting executed when I open any other
file/application?
NOTE: I'm not even trying to open the same file in which logging is
happening.
Any help is appreciated.
Thanks.
Below is the code I'm using to create the timer:
TimerCallback timerCollectDelegate =
new TimerCallback(charge.ChargeStatus);
System.Threading.Timer CollectTimer =
new System.Threading.Timer(timerCollectDelegate,
null, 0,
2000);