PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework what happen when I close the PDA

Reply

what happen when I close the PDA

 
Thread Tools Rate Thread
Old 03-12-2006, 02:15 PM   #1
=?Utf-8?B?T2ZlciBCLg==?=
Guest
 
Posts: n/a
Default what happen when I close the PDA


Hello

As I know, when I close the PDA it don't really closed my program like in PC.
I wrote a program that write to a log file every second using a timer.

When I closed the PDA, while my program was running and open it after 5
minutes, I saw that my program didn't wrote to the log file while the PDA was
closed.

I'm writing a program that is the main and only program that the user will
use on the PDA. I have some tasks that I want to stop when the PDA is closed,
and other that I want to keep running…

IS it possible? and How can I do that?

  Reply With Quote
Old 03-12-2006, 03:01 PM   #2
Guest
 
Posts: n/a
Default Re: what happen when I close the PDA

When you turnt he PDA "off" the processor typically suspends and DRAM is put
in self refresh. That means that when it's repowered, everything continues
where it was when it was powered off, but it also means that while off
*nothing* is running. This is important for power savings. If you were to
alter that behavior, the device battery life would be shortened a lot. If
you need task to run periodically, use a noticiation to wake at a specific
time, do the action, then go back to sleep.


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


"Ofer B." <OferB@discussions.microsoft.com> wrote in message
news:8B808EA0-3F68-4026-9D31-94B47DEFB269@microsoft.com...
> Hello
>
> As I know, when I close the PDA it don't really closed my program like in
> PC.
> I wrote a program that write to a log file every second using a timer.
>
> When I closed the PDA, while my program was running and open it after 5
> minutes, I saw that my program didn't wrote to the log file while the PDA
> was
> closed.
>
> I'm writing a program that is the main and only program that the user will
> use on the PDA. I have some tasks that I want to stop when the PDA is
> closed,
> and other that I want to keep running.
>
> IS it possible? and How can I do that?
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off