Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > page_fault_in_nonpaged_area when reading existing module memory

Reply
Thread Tools Display Modes

page_fault_in_nonpaged_area when reading existing module memory

 
 
Ferrit
Guest
Posts: n/a

 
      05-04-2011
Hi,

I've just written one of the smallest device driver ever with one driver entry and an unload function. I've compiled that for win7 X86 system. In the entry function I've chosen 2 existing modules and from both of them I wanted to read one single byte. In case of the first one no problem at all, but in the other case I've received page_fault_in_nonpaged_area! Both cases I checked the module start and end addresses in windbg several times in order to avoid this problem. I can understand that I can't write to every allocated place because that case I can destroy the whole system but read also blocked!?!?

The question is obvious: Who and why blocked my read operation? How can I get rid of that?

Regards,
Ferrit



 
Reply With Quote
 
 
 
 
Anand Choubey
Guest
Posts: n/a

 
      07-01-2011
On May 5, 4:10*am, Ferrit <ferrit....@gmail.com> wrote:
> Hi,
>
> I've just written one of the smallest device driver ever with one driver entry and an unload function. I've compiled that for win7 X86 system. In the entry function I've chosen 2 existing modules and from both of them I wanted to read one single byte. In case of the first one no problem at all, but in the other case I've received page_fault_in_nonpaged_area! Both cases Ichecked the module start and end addresses in windbg several times in order to avoid this problem. I can understand that I can't write to every allocated place because that case I can destroy the whole system but read also blocked!?!?
>
> The question is obvious: Who and why blocked my read operation? How can Iget rid of that?
>
> Regards,
> Ferrit


Send the call stack along with code section to get better and quick
understanding.
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista runs out of physical memory when working with files > 1GB - memory management issue? Robert Janik Windows Vista Performance 2 04-21-2010 05:03 AM
Help, NDIS BSOD Steve Cheng Windows Vista Drivers 2 01-15-2010 09:06 AM
I have 3GB of RAM installed but the system only reports 2814MB Shade00 Windows Vista Hardware 7 01-11-2008 11:46 AM
Stop 0x0000007b after Setup BobMiller Windows Vista Installation 8 08-05-2006 09:29 PM
Stop 0x0000007b at end of Install BobMiller Windows Vista Installation 2 08-03-2006 06:52 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59