错用RtlFreeUnicodeString引发BAD_POOL_CALL蓝屏
来源:互联网 发布:mac终端快捷键 编辑:程序博客网 时间:2024/05/21 11:20
上面摘取的驱动代码怎么看都不觉得有问题(对咱菜鸟来说滴), 编译驱动也是成功的.但加载之后就蓝屏BAD_POOL_CALL,调试了好久才定位到RtlFreeUnicodeString这个函数上(第一是偷懒不想装调试工具,估计也没啥用...,第二就是很难想到会是在User Mode里正常调用的RtlFreeUnicodeString出错,郁闷...)。
查看DDK的文档http://www.osronline.com/ddkx/kmarch/k109_0koi.htm 才发现还有这么一句:Pointer to the Unicode string buffer previously allocated by RtlAnsiStringToUnicodeString or RtlUpcaseUnicodeString.
可见,RtlFreeUnicodeString只能处理经由RtlAnsiStringToUnicodeString和RtlUpcaseUnicodeString的内存,而我并未使用它们~~~~~~~~~~
唉.....还好有虚拟机............................................ 下次注意!
- 错用RtlFreeUnicodeString引发BAD_POOL_CALL蓝屏
- RtlFreeUnicodeString routine
- RtlInitAnsiString RtlInitUnicodeString RtlAnsiStringToUnicodeString RtlFreeUnicodeString
- RtlFreeUnicodeString误用引起驱动程序错误
- 蓝屏
- 蓝屏
- 蓝屏
- 蓝屏
- winlogon.exe错误引发蓝屏stop c000021a的病毒解决过程
- 计算机蓝屏引发的思考——见证我的蜕变
- 蓝屏首页
- 电脑蓝屏
- 蓝屏代码
- 遭遇蓝屏
- 遭遇蓝屏
- 遭遇蓝屏
- 遭遇蓝屏
- 蓝屏速查表
- 思杰Xen Center的开源实现
- 字符编码
- Online Office, More then Office
- 分布式计算与虚拟化
- Active FTP vs. Passive FTP
- 错用RtlFreeUnicodeString引发BAD_POOL_CALL蓝屏
- QT 编程点滴
- 演练:调试多线程应用程序
- 优化算法--以Python实现(1)
- Linux ld script用法
- 收拾残局:如何让你的编码流程有条理 [Cleaning Up The Mess: How To Keep Your Coding Workflow Organized]
- Windows Phone 7 - 页面间传值
- WORD打开超级慢问题
- 一句代码解决 tr td table 重边的问题