Is there way to force the Timer control to keep ticking when the device is
off? I have an app that needs to do something 10 minutes after it's launched
regardless if the device is on or off during that time (similar to a windows
service - kind of). Since running ppc apps maintain their state between
off/sleep periods I would think the timer would continue to run but that does
not seem to be the case in my testing. Doesn't ActiveSync continue to run
when the device is "off"?
Thanks,
Jim

Re: System.Windows.Forms.Timer suspends when PPC sleeps by ctacke/>

ctacke/>
Fri Aug 18 12:11:32 CDT 2006

No. When the device goes to sleep, ALL program execution halts - that's
part of the point of sleep. If you need something to happen in the future,
use a notification, which will set up a match regiser interrrupt in the
processor and wake it when you want. At that point you can handle the
notification and do whatever it is you need done.


--
Chris Tacke
OpenNETCF Consulting
www.opennetcf.com
--





"Jim S" <JimS@discussions.microsoft.com> wrote in message
news:11347EA6-D38E-4EE0-A2C4-C54EAC91ABC0@microsoft.com...
> Is there way to force the Timer control to keep ticking when the device is
> off? I have an app that needs to do something 10 minutes after it's
> launched
> regardless if the device is on or off during that time (similar to a
> windows
> service - kind of). Since running ppc apps maintain their state between
> off/sleep periods I would think the timer would continue to run but that
> does
> not seem to be the case in my testing. Doesn't ActiveSync continue to run
> when the device is "off"?
> Thanks,
> Jim



Re: System.Windows.Forms.Timer suspends when PPC sleeps by JimS

JimS
Fri Aug 18 13:25:01 CDT 2006

Thanks <ctacke/>. Not sure what a "match regiser interrrupt" is but I'll
start digging.

"<ctacke/>" wrote:

> No. When the device goes to sleep, ALL program execution halts - that's
> part of the point of sleep. If you need something to happen in the future,
> use a notification, which will set up a match regiser interrrupt in the
> processor and wake it when you want. At that point you can handle the
> notification and do whatever it is you need done.
>
>
> --
> Chris Tacke
> OpenNETCF Consulting
> www.opennetcf.com
> --
>
>
>
>
>
> "Jim S" <JimS@discussions.microsoft.com> wrote in message
> news:11347EA6-D38E-4EE0-A2C4-C54EAC91ABC0@microsoft.com...
> > Is there way to force the Timer control to keep ticking when the device is
> > off? I have an app that needs to do something 10 minutes after it's
> > launched
> > regardless if the device is on or off during that time (similar to a
> > windows
> > service - kind of). Since running ppc apps maintain their state between
> > off/sleep periods I would think the timer would continue to run but that
> > does
> > not seem to be the case in my testing. Doesn't ActiveSync continue to run
> > when the device is "off"?
> > Thanks,
> > Jim
>
>
>

Re: System.Windows.Forms.Timer suspends when PPC sleeps by ctacke/>

ctacke/>
Fri Aug 18 14:00:02 CDT 2006

Interrupts are fairly irrelevent from the application perspective. All you
need to know is that you need to net us a user notification. This can be
done using CeRunAppAtTime or CeSetUserNotification in C/C++. From managed
code it's a fair amount of P/Invoking, greatly simplified here:

http://opennetcf.org/library/OpenNETCF.WindowsCE.Notification.NotifyMembers.html


--
Chris Tacke
OpenNETCF Consulting
www.opennetcf.com
--





"Jim S" <JimS@discussions.microsoft.com> wrote in message
news:F7F9B480-D739-4D62-BAE3-13D5C5ACBA0B@microsoft.com...
> Thanks <ctacke/>. Not sure what a "match regiser interrrupt" is but I'll
> start digging.
>
> "<ctacke/>" wrote:
>
>> No. When the device goes to sleep, ALL program execution halts - that's
>> part of the point of sleep. If you need something to happen in the
>> future,
>> use a notification, which will set up a match regiser interrrupt in the
>> processor and wake it when you want. At that point you can handle the
>> notification and do whatever it is you need done.
>>
>>
>> --
>> Chris Tacke
>> OpenNETCF Consulting
>> www.opennetcf.com
>> --
>>
>>
>>
>>
>>
>> "Jim S" <JimS@discussions.microsoft.com> wrote in message
>> news:11347EA6-D38E-4EE0-A2C4-C54EAC91ABC0@microsoft.com...
>> > Is there way to force the Timer control to keep ticking when the device
>> > is
>> > off? I have an app that needs to do something 10 minutes after it's
>> > launched
>> > regardless if the device is on or off during that time (similar to a
>> > windows
>> > service - kind of). Since running ppc apps maintain their state
>> > between
>> > off/sleep periods I would think the timer would continue to run but
>> > that
>> > does
>> > not seem to be the case in my testing. Doesn't ActiveSync continue to
>> > run
>> > when the device is "off"?
>> > Thanks,
>> > Jim
>>
>>
>>



Re: System.Windows.Forms.Timer suspends when PPC sleeps by JimS

JimS
Mon Aug 21 12:31:02 CDT 2006

Thanks ctack - I'll give it a try.

"<ctacke/>" wrote:

> Interrupts are fairly irrelevent from the application perspective. All you
> need to know is that you need to net us a user notification. This can be
> done using CeRunAppAtTime or CeSetUserNotification in C/C++. From managed
> code it's a fair amount of P/Invoking, greatly simplified here:
>
> http://opennetcf.org/library/OpenNETCF.WindowsCE.Notification.NotifyMembers.html
>
>
> --
> Chris Tacke
> OpenNETCF Consulting
> www.opennetcf.com
> --
>
>
>
>
>
> "Jim S" <JimS@discussions.microsoft.com> wrote in message
> news:F7F9B480-D739-4D62-BAE3-13D5C5ACBA0B@microsoft.com...
> > Thanks <ctacke/>. Not sure what a "match regiser interrrupt" is but I'll
> > start digging.
> >
> > "<ctacke/>" wrote:
> >
> >> No. When the device goes to sleep, ALL program execution halts - that's
> >> part of the point of sleep. If you need something to happen in the
> >> future,
> >> use a notification, which will set up a match regiser interrrupt in the
> >> processor and wake it when you want. At that point you can handle the
> >> notification and do whatever it is you need done.
> >>
> >>
> >> --
> >> Chris Tacke
> >> OpenNETCF Consulting
> >> www.opennetcf.com
> >> --
> >>
> >>
> >>
> >>
> >>
> >> "Jim S" <JimS@discussions.microsoft.com> wrote in message
> >> news:11347EA6-D38E-4EE0-A2C4-C54EAC91ABC0@microsoft.com...
> >> > Is there way to force the Timer control to keep ticking when the device
> >> > is
> >> > off? I have an app that needs to do something 10 minutes after it's
> >> > launched
> >> > regardless if the device is on or off during that time (similar to a
> >> > windows
> >> > service - kind of). Since running ppc apps maintain their state
> >> > between
> >> > off/sleep periods I would think the timer would continue to run but
> >> > that
> >> > does
> >> > not seem to be the case in my testing. Doesn't ActiveSync continue to
> >> > run
> >> > when the device is "off"?
> >> > Thanks,
> >> > Jim
> >>
> >>
> >>
>
>
>