Re: Driver Init failed on release build?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



A common one is to forget to initialize a structure/pointer to zero, under a debug build the initial value of your variables will be different to under a retail build.

Error code c0010006 is defined as NDIS_STATUS_ADAPTER_NOT_FOUND
You probably want to look at you PCI bus enumeration rather than at the NDIS driver code to see that you can actually find the card.
Did you forget to enable power to the card or something like that?

Geoff
--

mich1985 wrote:
Hello,
we use a prism based mPCI wifi card on various hardware platforms(just
other cpus). On a few we get problems. The strangely thing is that the
wlan adapter works without problems in a debug build but in release
build of the os (wince 5) it fails.
Here is a part of the according debug output(in release build i have
copied the debug version of pcibus.dll and the ndis.dll):

Relase version failed on "ndisMInitializeAdapter: Miniport 00366948,
InitializeHandler returned c0010006". After the 4x
NdisWritePciSlotInformation i have a timeout of 3-4 seconds just in
release build:
....
NdisMQueryAdapterResources: Miniport 00366948
<==NdisMQueryAdapterResources: Miniport 00366948, Status 0
==>NdisMMapIoSpace
<==NdisMMapIoSpace: Miniport 00366948, Status 0
***NDIS*** (a, 534)
==>NdisMRegisterInterrupt: Miniport 00366948 Vector 10
Loaded symbols for
'D:\WINCE500\PBWORKSPACES\WLANWZC\RELDIR\MSC_TC_X86_RELEASE\GIISR.DLL'
NDIS:: CeConnectInterrupt() --> IRQ[10] SYSINTR[33]
***NDIS*** (a, 753)
<==NdisMRegisterInterrupt: Miniport 00366948, Status 0
==>NdisReadPciSlotInformation: Miniport 00366948
<==NdisReadPciSlotInformation: Miniport 00366948
==>NdisWritePciSlotInformation: Miniport 00366948
<==NdisWritePciSlotInformation: Miniport 00366948
==>NdisReadPciSlotInformation: Miniport 00366948
<==NdisReadPciSlotInformation: Miniport 00366948
==>NdisWritePciSlotInformation: Miniport 00366948
<==NdisWritePciSlotInformation: Miniport 00366948
==>NdisWritePciSlotInformation: Miniport 00366948
<==NdisWritePciSlotInformation: Miniport 00366948
***NDIS*** (a, 767)
==>NdisMDeregisterInterrupt: Miniport 00366948
***NDIS*** (a, 861)
<==NdisMDeregisterInterrupt: Miniport 00366948
==>NdisMUnmapIoSpace: Miniport 00366948
<==NdisMUnmapIoSpace: Miniport 00366948
ndisMInitializeAdapter: Miniport 00366948, InitializeHandler returned
c0010006
==>NdisMDeregisterAdapterShutdownHandler: Miniport 00366948
<==NdisMDeregisterAdapterShutdownHandler: Miniport 00366948
***NDIS*** (b, 2078)
INIT FAILURE: Dequeueing the miniport from the driver block.
==>ndisDeQueueMiniportOnDriver, Miniport 00366948, MiniBlock 00366800
<==ndisDeQueueMiniportOnDriver: Miniport 00366948, MiniBlock 00366800
***NDIS*** (b, 2105)
INIT FAILURE: Dereferencing the miniport block.
<==ndisMInitializeAdapter: Miniport 00366948, Status c0010006
<==ndisInitializeAdapter: Miniport/Adapter 00366948
<==ndisPnPStartDevice: Miniport 00366948
ndisDereferenceMiniport:Miniport 00366948, Ref = 0
==>ndisIsMiniportStarted: Miniport 00366948
<==ndisIsMiniportStarted: Miniport 00366948, Started 0
==>ndisPnPRemoveDevice: Miniport 00366948
<==ndisPnPRemoveDevice: Miniport 00366948
<==ndisAddDevice: Miniport 00366948
==>ndisMUnload: DriverObject 00053170
ndisMUnload: MiniBlock 00366800
<==ndisMUnload: DriverObject 00053170, MiniBlock 00366800
Unloaded symbols for 'prisma00.dll'
....


Debug version output:
....
NDIS:: CeConnectInterrupt() --> IRQ[10] SYSINTR[33]
***NDIS*** (a, 753)
<==NdisMRegisterInterrupt: Miniport 003B5218, Status 0
==>NdisReadPciSlotInformation: Miniport 003B5218
<==NdisReadPciSlotInformation: Miniport 003B5218
==>NdisWritePciSlotInformation: Miniport 003B5218
<==NdisWritePciSlotInformation: Miniport 003B5218
==>NdisReadPciSlotInformation: Miniport 003B5218
<==NdisReadPciSlotInformation: Miniport 003B5218
==>NdisWritePciSlotInformation: Miniport 003B5218
<==NdisWritePciSlotInformation: Miniport 003B5218
==>NdisWritePciSlotInformation: Miniport 003B5218
<==NdisWritePciSlotInformation: Miniport 003B5218
ndisMInitializeAdapter: Miniport 003B5218, InitializeHandler returned 0
==>NdisMRegisterAdapterShutdownHandler: Miniport 003B5218
<==NdisMRegisterAdapterShutdownHandler: Miniport 003B5218
***NDIS*** (c, 712) ....

Any suggestions?

Regards,
flo

.



Relevant Pages

  • Driver Init failed on release build?
    ... Here is a part of the according debug output(in release build i have ... Relase version failed on "ndisMInitializeAdapter: Miniport 00366948, ... ndisMUnload: MiniBlock 00366800 ...
    (microsoft.public.windowsce.embedded)
  • NDIS errors during boot of Debug build
    ... I have wodered whether the serial debug output is itself giving me problems but I can't find a way of turning it off. ... MiniBlock 00037000, Status 0 ... Miniport 000371E8, ...
    (microsoft.public.windowsce.platbuilder)