Re: BSOD_PAGE_FAULT_IN_NON_PAGED_AREA

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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@xxxxxxxxxxxxxxxx
Hi 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");
}



.



Relevant Pages

  • BSOD_PAGE_FAULT_IN_NON_PAGED_AREA
    ... I have problem running the following driver code. ... VOID UnLoadMe(IN PDRIVER_OBJECT obj); ...
    (microsoft.public.development.device.drivers)
  • Re: BSOD_PAGE_FAULT_IN_NON_PAGED_AREA
    ... I have problem running the following driver code. ... VOID UnLoadMe(IN PDRIVER_OBJECT obj); ...
    (microsoft.public.development.device.drivers)
  • Re: BSOD_PAGE_FAULT_IN_NON_PAGED_AREA
    ... I thought I can do that because in driver tree I 've seen the driver listed ... I have problem running the following driver code. ... VOID UnLoadMe(IN PDRIVER_OBJECT obj); ...
    (microsoft.public.development.device.drivers)
  • Re: system just recoered from a serious error
    ... App/Device Driver File Name Manufacturer Help ... Network Card Supported Not Required Troubleshooter ... Local Disk 34% More Info ... Are there any yellow question marks in Device Manager? ...
    (microsoft.public.windowsxp.basics)
  • Re: [linux-pm] [PATCH 0/8] Suspend block api (version 8)
    ... untrusted app receiving the event and the untrusted app marking itself ... To avoid this you need the UI manager to receive every ... mechanism less deterministic than a suspend block based one. ... Not just the button driver. ...
    (Linux-Kernel)