Re: netcf forms application timer and power question
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Wed, 9 Apr 2008 11:22:28 -0700
No, when the device is suspended, NO CODE IS RUNNING. Things that happen at
times or in response to events that occur as a result of interrupts can
still occur (because the interrupt wakes the device), but no code is running
in the mean time. Your mail task sets itself up with CeRunAppAtTime() or
one of the similar API calls, which sets up an interrupt to occur at a given
time, which wakes up the device from suspend and then does something. Ditto
the phone ringing: interrupt-based.
What are you trying to do with PowerPolicyNotify? All that does is tell the
system that it doesn't need to turn on the display when your app does its
thing. Again, the display is not off; the entire device is suspended. You
don't want to prevent that, for power reasons. If you need to be launched
or have an event fire at a given time, you can use CeRunAppAtTime (check the
archives), to do that. Here's a link to the .NET CF group,
microsoft.public.dotnet.framework.compactframework, archive search in
GoogleGroups:
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/topics
Paul T.
"vkoser" <vkoser@xxxxxxxxx> wrote in message
news:1be465ea-f93d-4bf9-9573-7c02f78d1e76@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Interesting, there must be some way to have things run during this
state or my phone would never ring? it also picks up mail every 5
minutes.
I've done a pinvoke on PowerPolicyNotify to let the device know I want
to continue processing by setting the mode to unattendedmode but I'm
not having much luck with that either.
vince
On Apr 9, 11:39 am, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
My guess is that, when you push the power button, you are *not* turning
off
the LCD, but that you are suspending the device. When the device is
suspended, no code is running, so there's nothing you can do about that.
Paul T.
.
- Follow-Ups:
- Re: netcf forms application timer and power question
- From: vkoser
- Re: netcf forms application timer and power question
- References:
- netcf forms application timer and power question
- From: vkoser
- Re: netcf forms application timer and power question
- From: Paul G. Tobey [eMVP]
- Re: netcf forms application timer and power question
- From: vkoser
- netcf forms application timer and power question
- Prev by Date: Re: netcf forms application timer and power question
- Next by Date: Re: netcf forms application timer and power question
- Previous by thread: Re: netcf forms application timer and power question
- Next by thread: Re: netcf forms application timer and power question
- Index(es):