Debug during PPC suspend and resume

  • Thread starter Thread starter Matt Young
  • Start date Start date
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! :)
 
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.
 
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?
 
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.
 
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.
 
Back
Top