Hi,
I have a camera driver available with my BSP.
If i build the image in release version the camera driver gets loaded
by the device manager and I could see it in the
[HKEY_LOCAL_MACHINE\Drivers\Active] key.
Please note an entry for the driver is already present in the
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Camera]
path of the image registry.
But if I build the image in debug mode the camera driver would not get
loaded by device manager and it does not appear in the
[HKEY_LOCAL_MACHINE\Drivers\Active] key.
Also since the driver is a stream interface driver calling CreateFile
on the driver for a release image works fine but the same fails for a
debug image.
I saw the kernel debugger outputs and following are the debug output
line I could see which indicate the camera driver could not be loaded
but I could not interpret the reason
27299 PID:67f9d026 TID:67f9d002 0x87fa6da8: DEVICE!
RegReadActivationValues RegQueryValueEx(Drivers\BuiltIn\Camera
\BusPrefix) returned 2
27371 PID:67f9d026 TID:67f9d002 0x87fa6da8: Loading of Module
'cm_x270_camera.dll' (87ca7e28) failed, prevRefCnt = 0, refcnt = 0,
inuse = 00000000, dwErr = 0000000e
27371 PID:67f9d026 TID:67f9d002 0x87fa6da8: DEVICE!CreateDevice:
couldn't load 'cm_x270_camera.dll' -- error 14
27371 PID:67f9d026 TID:67f9d002 0x87fa6da8: CreateDevice: creation
of type 'CAM', index 1, lib 'cm_x270_camera.dll' returning 0x00000000,
error code 2
27371 PID:67f9d026 TID:67f9d002 0x87fa6da8: DEVICE!
I_ActivateDeviceEx: couldn't activate: prefix CAM, index 1, dll
cm_x270_camera.dll, context 0x602e7f4
Looking at above output of kernel debugger can anybody tell me why the
driver gets loaded in the release build but not in debug build
Thanks in advance
Anwar