PowerEventWaitQueue On Windows Mobile 5.0

B

bloodbrian

I am working on an app originally written for PPC 2003. We have since
upgraded to WM 5.0, but have found that the code we use to detect a
resume from sleep no longer works.

The code is based on the sample code provided by Alex Feinman, found
here:
http://www.alexfeinman.com/download.asp?doc=PowerAwareApp.zip

This worked perfectly on the old OS, but in the new OS the message
queue never seems to be populated. Does anyone know of a way to
capture a resume from sleep on Windows Mobile 5.0?

We are working in VS 2003, .Net 1.1, on a Symbol MC9090.
 
G

Guest

That queue is definitely valid on WM 5.0 - I'm using it on an Axim x51 right
now (though admittedly not directly with Alex's code).
 
B

Brian

Thanks for the reply, Chris. The contents of your reply definitely
don't give me a lot of hope, however. I have tested the app that Alex
posted on a Symbol MC9060 (running WM 2003) and it worked perfectly
well.
Same code on MC9090 with WM 5.0 and it does nothing at all...the thread
checking the queue just loops forever without ever receiving a message.
Is it possible that Symbol has removed it from their package, do you
think?
-Brian
 
G

Guest

It's actually possible, though I'd be pretty sureprised (and maybe the WM
specs require it anyway).
One other thought - are you certain this device suspends? I'm not familiar
with this device, but some devices (like all of the phone edition devices)
never actually suspend. This allows the radio to stay on and receive calls.
It also means that the power queue will never get a suspend or wake event
(though it probably still gets some other transition messages).
 
B

Brian

I am certain that the device suspends. The PowerEventWaitQueue should
have a variety of messages coming in. Alex's code examines each one,
looking for the resume from sleep. On the MC9090, the queue never
sends ANY messages back. It really is like it is just not there. I
guess I will need to contact Symbol directly about this.
 

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