Wake up !

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there, desperately need help on this issue.

I have a c# smart device application which has a timer which after 5 minutes
automatically downloads some information from our server.

Unfortunately, when the device goes to sleep the timer stops, thus no longer
pulling any info down.

what can i do about this?

Calendar seems to be able to wake the device up

Do i need to put the routine on a seperate thread and then sleep it for 5
minutes... ??

Help!

Thanks
 
You could use CeRunAppAtTime P/Invoke (or OpenNETCF.Win32.Notify.Notify
class) to start running application at certain time when it would be
executed set again running at CurrentTime + 5 minutes and so on.

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
wow.... that is a real nightmare.

Is this really going to require another executable program ???

No other way at all??
 
No, it doesn't require another program, or, at least I don't think that it
does. When the time rolls around, the device should wake up. If you
actually look at the code Sergey pointed to, you can arrange for it to fire
an event, not just launch another program. The sample for Notification in
OpenNETCF's Samples folder shows this. If your code has a thread which
waits on that event, when the device wakes up, the event will be set and
your thread will know that it's time to do its thing.

Paul T.
 
Back
Top