ERROR: Power Handler function yield to low priority thread 解决办法(作者:JNU_kinke)
2009-11-06 10:05
381 查看
ERROR: Power Handler function yield to low priority thread 解决办法(作者:JNU_kinke)
wince5.0休眠唤醒的时候出现ERROR: Power Handler function yield to low priority thread. 异常
,导致系统唤醒过程很慢。
上网上找一下资料说到:
You can't make a system call of any kind in a power handler routine. You
could implement this requirement by making the driver power manager aware
and performing the operation when the PM tells you to change state.
在power handler routine中不能调用系统函数,比如sleep()
因为很多帖子都提到“power handler routine中不能调用系统函数”,虽然有点肯定就是这个原因,但
是系统这么多驱动不知如何下手,我想到的调试办法就是一个一个驱动试。首先不加载camra驱动,不行;再
不加载backlight驱动,比较幸运,原来就是这个驱动搞得鬼。找到backlight驱动的power_up代码:
BAK_PowerUp(void)
{
BL_On(TRUE);
//BL_PowerOn(TRUE);
}
BAK_PowerUp调用了 BL_On, BL_On是背光开关函数,其中调用了注册表函数RegOpenKeyEx。调整了backlight
驱动的程序结构,问题最终得到解决。
希望同样碰到这个问题的同行有帮助。
wince5.0休眠唤醒的时候出现ERROR: Power Handler function yield to low priority thread. 异常
,导致系统唤醒过程很慢。
上网上找一下资料说到:
You can't make a system call of any kind in a power handler routine. You
could implement this requirement by making the driver power manager aware
and performing the operation when the PM tells you to change state.
在power handler routine中不能调用系统函数,比如sleep()
因为很多帖子都提到“power handler routine中不能调用系统函数”,虽然有点肯定就是这个原因,但
是系统这么多驱动不知如何下手,我想到的调试办法就是一个一个驱动试。首先不加载camra驱动,不行;再
不加载backlight驱动,比较幸运,原来就是这个驱动搞得鬼。找到backlight驱动的power_up代码:
BAK_PowerUp(void)
{
BL_On(TRUE);
//BL_PowerOn(TRUE);
}
BAK_PowerUp调用了 BL_On, BL_On是背光开关函数,其中调用了注册表函数RegOpenKeyEx。调整了backlight
驱动的程序结构,问题最终得到解决。
希望同样碰到这个问题的同行有帮助。
相关文章推荐
- ERROR: Power Handler function yield to low priority thread 解决办法
- ERROR: Power Handler function yield to low priority thread. 解决方法
- windows mobile 6.5.3 ERROR: Power Handler function yield to low priority thread.
- Fatal error: Call to a member function fetch_array() on a non-object问题的解决办法
- Fatal error: Call to undefined function curl_init()解决办法
- Android之error: void value not ignored as it ought to be(In function 'callMethod2')解决办法
- Exception in thread "main" java.lang.UnsupportedClassVersionError: com/google/common/base/Function : Unsupported major.minor version 52.0的解决办法(图文详解)
- error: Call to undefined function imagecreate()的解决办法
- Fatal error: Call to undefined function mysql_connect()解决办法
- Fatal error: Call to undefined function mysql_connect()的解决办法
- 关于[Linker error] undefined reference to `WSAStartup@8'的解决办法作者:chenxusukhoi
- The connection to adb is down, and a severe error has occured完整解决办法
- 转:解决 - java.lang.OutOfMemoryError: unable to create new native thread
- conversion to dalvik format failed with error 1的解决办法
- The connection to adb is down, and a severe error has occured的解决办法
- PHP连接MySQL报错:Fatal error: Call to undefined function mysql_connect()之解决方法
- 高并发请求服务器时,经常出现如下异常:java.lang.OutOfMemoryError: unable to create new native thread的解决方法
- (重置adb.exe)android关于The connection to adb is down, and a severe error has occured.这个问题的解决办法
- dotproject的Call to a member function Execute() 解决办法
- Error launching Android Studio: Failed to create JVM: error code-1解决办法