Hi,
I have a WinCE 5.0 system.
System can enter the sleep (suspend) mode, but when system can not wake up.
After I trace the codes, I found systems will hang up in sleep(10) of
SetVideoPowerState.
The same codes work in WinCE 4.2, but it failed in WinCE 5.0.
Why ?
void SetVideoPowerState(VIDEO_POWER_STATE PowerState)
{
//This is where the lcd would be turned on or off
g_ScreenState = PowerState;
if (g_ScreenState == VideoPowerOn)
{
.......Set some registers
Sleep(10);
.......Set some registers
}
.........
}