Re: Why ExAllocatePool fail ? by David
David
Sat Sep 10 00:27:57 CDT 2005
Not a good idea. You should not run with low resource simulation all the
time, but you must run with it to ensure you can handle a failure to obtain
memory. There is always a chance that you will find yourself running on a
system with no available memory. It may be temporary, but you sure don't
want your driver being the one in the stack when the system bug checks,
especially if yours was not the driver that is using all the memory.
"heinz" <heinz_baer@my-deja.com> wrote in message
news:1126326960.053972.212090@z14g2000cwz.googlegroups.com...
>> When I use ExAllocatePool( ) to allocate nonpaged pool, sometime will
>> fail.
>> And I use XPDDK's DriverVerify(on XP) to check the nonpaged pool peak
>> bytes,
>> it's only 64 bytes.
>> Could anyone tell me why ExAllocatePool( ) return NULL and how to avoid
>> it
>> happen ?
>
> Turn of "Low resource simulation" in driver verifier.
>