Re: BSOD_PAGE_FAULT_IN_NON_PAGED_AREA
- From: "Doron Holan [MSFT]" <doronh@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 13 May 2008 21:37:45 -0700
alexander is correct, you cannot reassign this value. this field is owned by the io manager. since the io manager owns it, it thinks it can free it, which it does on unload. since the buffer points to a constant in your driver's image and not from pool, it blows up.
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Alexander Grigoriev" <alegr@xxxxxxxxxxxxx> wrote in message news:e3owKRXtIHA.748@xxxxxxxxxxxxxxxxxxxxxxx
theDriverObject->DriverName=us;
You CAN'T do that... Why do you think you can?
"fotis" <fotis@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:7809FC03-18C3-4A11-84E0-DEF3B7BD2BBC@xxxxxxxxxxxxxxxxHi there people,
I have problem running the following driver code. It worked for sometime
but without no obvious reason whenever I try to stop the driver service
a BSOD appears with the PAGE_FAULT_IN_NON_PAGED_AREA error.
I found out that when I remove the set DriverName code the problem disappears
but the question is why.
I'm desperate I cant find a way to fix this thing. I load the driver
with the instdrv.In the Debug Viewer only the HI message apperars Any ideas?
Here is the code
VOID UnLoadMe(IN PDRIVER_OBJECT obj);
UNICODE_STRING us;
NTSTATUS DriverEntry ( IN PDRIVER_OBJECT theDriverObject, IN PUNICODE_STRING
theRegistryPath )
{
DbgPrint("HELLO");
RtlInitUnicodeString( &us, L"TEST\0" );
theDriverObject->DriverName=us;
theDriverObject->DriverUnload=UnLoadMe;
return STATUS_SUCCESS;
}
VOID UnLoadMe(IN PDRIVER_OBJECT obj)
{
DbgPrint("BYE");
}
.
- Follow-Ups:
- Re: BSOD_PAGE_FAULT_IN_NON_PAGED_AREA
- From: fotis
- Re: BSOD_PAGE_FAULT_IN_NON_PAGED_AREA
- References:
- BSOD_PAGE_FAULT_IN_NON_PAGED_AREA
- From: fotis
- Re: BSOD_PAGE_FAULT_IN_NON_PAGED_AREA
- From: Alexander Grigoriev
- BSOD_PAGE_FAULT_IN_NON_PAGED_AREA
- Prev by Date: Why are PCI-to-SATA and PCI-to-IDE Card designed to SCSI class Car
- Next by Date: Re: WDM USB driver trouble under vista
- Previous by thread: Re: BSOD_PAGE_FAULT_IN_NON_PAGED_AREA
- Next by thread: Re: BSOD_PAGE_FAULT_IN_NON_PAGED_AREA
- Index(es):
Relevant Pages
|