CeRunAppAtTime - Not working from suspend

L

Leuis

I am using CeRunAppAtTime (from the OpenNETCF.WinAPI lib) to initiate
my CF application with success - unless the device is in suspend mode.

If the device is in suspend mode, CeRunAppAtTime just wakes the device
up and doesn't run the app. That is, until I perform a soft reset when
the application runs!?

I'm using VS.NET 2003, and a Symbol PPT8846 running Win CE.NET 4.1. My
tests range in time from 20 secs to a couple of minutes.

It sounds like exactly the same problem reported in the following
post, but it recieved no reply: http://tinyurl.com/2kkfj

I'm really stumped here, has anybody got any idea what is going on?

Thanks, Leuis.
 
P

Peter Foot [MVP]

Is your application still running in the background when you suspend the
device?

Peter
 
L

Leuis

Thanks for the reply Peter.

No, the application is not running. I am sure of this because I perform a
soft reset, and then call RunAppAtTime from a second application which
consists simply of the following lines:

DateTime dt = System.DateTime.Now.AddSeconds(120);
OpenNETCF.WinAPI.Core.RunAppAtTime(
"\\Windows\\ceplayer.exe,dt);
Console.WriteLine(dt.ToString());
Console.ReadLine();

This will reproduce the behaviour outlined in my previous post. It doesn't
seem to matter if the application I am trying to invoke is a CF app or
otherwise (such as ceplayer above).

Another strange thing is that if I soft reset the device straight after
running the above app (say, to exec an app in ten minutes) the scheduled
application runs immediately when the device boots!? This is regardless it
seems of the time I pass to the function.

Any ideas?

Leuis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top