Hi..
I have allocated memory from Nonpaged pool using ExAllocatePoolWithTag.
I am passing the pointer to the allocated memory location into a function
call, and sometime when tried to access the same, gives a
SYSTEM_THREAD_EXCEPTION_NOT_HANDLED (7e)
The allocated memory is not freed. The access violation happends randomly..
EXCEPTION_RECORD: badd0b3c -- (.exr ffffffffbadd0b3c)
ExceptionAddress: b9ceb90c (mydriver!MyBox::MyBoxType+0x0000000c)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000000
Parameter[1]: 004d98a4
Attempt to read from address 004d98a4
Is there any way find out whether the address in the Nonpaged is valid or
not..
I tried using MmIsAddressValid, it's mentioned in documentation that it's
not recommended to use it.. also I am not able to compile with WDK 6000 build.
Thanks..