BSOD求助!
下面的细节是用windbg分析驱动蓝屏后的mini dump
0: kd> !analyze -v
*******************************************************************************
* *
* Bugcheck Analysis *
* *
*******************************************************************************
PAGE_FAULT_IN_NONPAGED_AREA (50)
Invalid system memory was referenced. This cannot be protected by try-except,
it must be protected by a Probe. Typically the address is just plain bad or it
is pointing at freed memory.
Arguments:
Arg1: fffffa80089b6000, memory referenced.
Arg2: 0000000000000000, value 0 = read operation, 1 = write operation.
Arg3: fffff80002a68d0a, If non-zero, the instruction address which referenced the bad memory
address.
Arg4: 0000000000000000, (reserved)
Debugging Details:
------------------
驱动中主要执行代码我都用try-except包起来了(不多10几行)
BSOD情况很不稳定,在用户层调用驱动时, 有时又不发生蓝屏, 我很难查到哪个指针是无效的引用内存, 既然不能用try-except,那还有其它方法检查指针, 防止蓝屏吗?