Debug during PPC suspend and resume

M

Matt Young

Does anyone know of a way to keep the vs.net debugger running while you
turn the pocket pc device off and back on? I'm trying to debug some
strange behavior in an application that occurs after the device resumes
from suspend mode.

Any tips would be most appreciated! :)
 
P

Paul G. Tobey [eMVP]

I think you're going to have to try something else. Maybe you could send
debug messages out a serial port to Hyperterminal, store some data in a file
in the filesystem, or something like that, but when the device is suspended,
the device-side debug stuff is no longer running (that's like asking to keep
Word running when you turn off your desktop computer).

Paul T.
 
M

Matt Young

Thanks Paul,

That's what I was afraid of... Do you think faking a WM_HIBERNATE and
resume message to only my application would do the trick? And of course
:), do you have any idea how I could generate those windows messages?
 
P

Paul G. Tobey [eMVP]

Huh? Maybe more background on why you think that this has something to do
with suspend and your application is appropriate. You can look up
WM_HIBERNATE on MSDN or in the help for the C/C++ SDK for your target
device. You just call PostMessage or SendMessage. wParam and lParam are
both zero.

Paul T.
 
C

Charles Peterson

Note that WM_HIBERNATE isn't related to suspend/resume. WM_HIBERNATE
is used in low-memory situations to ask applications to lower their resource
usage.
 

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