Page fault in NT

Hi All,
We are porting NDIS driver from 2K to NT and facing the problem. We are
getting a pagefault/Hard Error after opening Handle to lower driver. The
lower driver is a SCSI miniport driver.
We tried calling IoAttachDeviceByPointer / IoAttachDevice/
IoAttachDeviceToDeviceStack. It opens the handle and we can communicate
for around 20 times, after that we are getting Harderror or Pagefault.
Whereas without opening the handle to lower driver, the NDIS driver is
working fine ( both the drivers are working fine in 2K). What may be
the reason and how to fix this problem?
Thanks in advance,
Indira


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

  • Go to the DDK debugging site:

http://www.microsoft.com/ddk/debugging/

  • Download and install "Debugging Tools for Windows" (ie. WinDbg).

  • Make sure to set the "symbol file path" in WinDbg as described in
    "How to Get Symbols" on the above site.

  • After the crash, enter command "!analyze -v"

  • Carefully check the stack. If you have set the "source file path"
    accordingly, you can double-click on stack entries in the "call stack"
    window and it will show you where it was in your driver sources. You
    can also see the driver's local variables there. (Compile the driver
    with "/Od /Oi".)

  • Come back if this doesn't help.

HTH, Stephan

On Wed, 23 Jan 2002 11:09:37 +0530, Indira wrote:

>
>Hi All,
>We are porting NDIS driver from 2K to NT and facing the problem. We are
>getting a pagefault/Hard Error after opening Handle to lower driver. The
>lower driver is a SCSI miniport driver.
>We tried calling IoAttachDeviceByPointer / IoAttachDevice/
>IoAttachDeviceToDeviceStack. It opens the handle and we can communicate
>for around 20 times, after that we are getting Harderror or Pagefault.
>Whereas without opening the handle to lower driver, the NDIS driver is
>working fine ( both the drivers are working fine in 2K). What may be
>the reason and how to fix this problem?
>Thanks in advance,
>Indira

---
You are currently subscribed to ntdev as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-ntdev-$subst('Recip.MemberIDChar')@lists.osr.com