C0000034 before DriverEntry...

Hi,
I am getting a “Driver A failed to load with status C0000034” which is
essentially STATUS_OBJECT_NAME_NOT_FOUND. The strange part is that the
DriverEntry does not even get hit. I have a hard coded breakpoint in
DriverEntry which never gets executed neither do the debug statements get
printed from DriverEntry. Some how NT Loader is failing to load the driver.
Has anyone seen something like this?
Any ideas will be appreciated.


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

Hi,
Thanks for your answer. But I am sure about the size
of the driver. And infact I must have compiled and
recopied the driver over a dozen times.
As far as the KDLLs are concerned I don’t think there
is any DLL missing. Maybe the driver is compiled
against a different DLL than what is on the machine.
But what surprises me is that how does NT figure out
this discrepency even before DriverEntry. My guess is
that it should cause problems when I try to call
something in the DLL which I don’t untill a later part
of DriverEntry.

Thanks
Mayank


Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com


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

The Memory Manager has to resolve all outstanding references as part of
loading a device driver. If there is a function that you call that does not
exist in the system, the Memory Manager cannot resolve the reference and it
aborts loading the driver.

That’s how it causes a problem before your driver entry routine is even
called.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: Mayank Ajmera [mailto:xxxxx@yahoo.com]
Sent: Saturday, February 09, 2002 10:42 AM
To: NT Developers Interest List
Subject: [ntdev] RE: C0000034 before DriverEntry…

Hi,
Thanks for your answer. But I am sure about the size
of the driver. And infact I must have compiled and
recopied the driver over a dozen times.
As far as the KDLLs are concerned I don’t think there
is any DLL missing. Maybe the driver is compiled
against a different DLL than what is on the machine.
But what surprises me is that how does NT figure out
this discrepency even before DriverEntry. My guess is
that it should cause problems when I try to call
something in the DLL which I don’t untill a later part
of DriverEntry.

Thanks
Mayank


Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com


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


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

Mayank:

This is a load order problem. I got this error when using a driver as a
DLL for another driver. If the DLL driver is not loaded (started?)
before the driver that will reference it, then the call(s) cannot be
resolved and you will get this error before your DriverEntry is called.

Michael S. Jackson
NetMotion Wireless, Inc.
xxxxx@nmwco.com

-----Original Message-----
From: Mayank Ajmera [mailto:xxxxx@yahoo.com]
Sent: Thursday, February 07, 2002 6:01 PM
To: NT Developers Interest List
Subject: [ntdev] C0000034 before DriverEntry…

Hi,
I am getting a “Driver A failed to load with status C0000034”
which is
essentially STATUS_OBJECT_NAME_NOT_FOUND. The strange part is
that the
DriverEntry does not even get hit. I have a hard coded breakpoint in
DriverEntry which never gets executed neither do the debug
statements get
printed from DriverEntry. Some how NT Loader is failing to
load the driver.
Has anyone seen something like this?
Any ideas will be appreciated.


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


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

Problem with that …

If the reference is via a DLL, then the IoGetDeviceObjectPointer is not
strictly needed since the DLL will be loaded into memory when it is
referenced. However … DriverEntry will not be called until the PnP manager
decides it is time for that driver, or until the Group/Start/Tag in the
Service key has been satisfied.

Gary G. Little
Broadband Storage, Inc.
xxxxx@broadstor.com
xxxxx@inland.net

-----Original Message-----
From: Michael Jackson [mailto:xxxxx@nmwco.com]
Sent: Monday, February 11, 2002 10:32 AM
To: NT Developers Interest List
Cc: xxxxx@yahoo.com
Subject: [ntdev] RE: C0000034 before DriverEntry…

Mayank:

This is a load order problem. I got this error when using a driver as a
DLL for another driver. If the DLL driver is not loaded (started?)
before the driver that will reference it, then the call(s) cannot be
resolved and you will get this error before your DriverEntry is called.

Michael S. Jackson
NetMotion Wireless, Inc.
xxxxx@nmwco.com

-----Original Message-----
From: Mayank Ajmera [mailto:xxxxx@yahoo.com]
Sent: Thursday, February 07, 2002 6:01 PM
To: NT Developers Interest List
Subject: [ntdev] C0000034 before DriverEntry…

Hi,
I am getting a “Driver A failed to load with status C0000034”
which is
essentially STATUS_OBJECT_NAME_NOT_FOUND. The strange part is
that the
DriverEntry does not even get hit. I have a hard coded breakpoint in
DriverEntry which never gets executed neither do the debug
statements get
printed from DriverEntry. Some how NT Loader is failing to
load the driver.
Has anyone seen something like this?
Any ideas will be appreciated.


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


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


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

Hi,
The driver is not a pnp driver (NT 4.0). Also the Kernel mode dll it uses
it present and loaded. So I am not sure what is going on.

Thanks
Mayank


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