Hi All,
The problem is solved.
I apologize for hastily sending in the query without sufficient testing. The
problem was not at all with DbgPrint, but it was with NDIS_INIT_FUNCTION
macro.
I had used ’ #pragma NDIS_INIT_FUNCTION ’ for all initialization functions.
But I overlooked the DDK note :
A NIC driver cannot use this macro on its MiniportInitialize function, nor
on any internal driver function called by MiniportInitialize, because this
function can be called at runtime in a Plug-and-Play environment
When I removed the macro, everything worked smoothly. Thank you all for your
suggestions.
Abhijit
Hi All,
I have a NDIS driver for Windows 2000. It works fine unless any DbgPrint
is
present. If I put any DbgPrint, it crashes with Bug check code 0x50
(PAGE_FAULT_IN_NONPAGED_AREA).
Also if I build my driver with checked environment, I experience the same.
I
am using the W2K Beta version of the Debug build. Can it be the cause? Can
anyone please clarify?
The configuration is :-
Windows 2000 Professional
Checked/Debug build, Beta 3
Release Candidate 1 (x86), Build 2000Regards,
Abhijit