Problem with TimerCallback in.NET Compact Framework
- From: "Networking Developer" <NetworkingDeveloper@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 16 Jun 2005 20:45:57 -0700
Hi all,
>
> 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);
.
- Follow-Ups:
- Re: Problem with TimerCallback in.NET Compact Framework
- From: ManniAT
- Re: Problem with TimerCallback in.NET Compact Framework
- Prev by Date: Re: network connection stops working after 5-7 successful connections
- Next by Date: Geeting certain error in C# Help nedded
- Previous by thread: Interpreting Performance Statistics
- Next by thread: Re: Problem with TimerCallback in.NET Compact Framework
- Index(es):
Relevant Pages
|