引用 2 楼 lbqhope 的回复:
// Release access to Camera
if ( !DeviceIoControl(hCamDrv, IOCTL_CAM_RSC_RELEASE, NULL, 0, NULL, 0, &dwBytes, NULL) )
{
RETAILMSG(CAMTEST_ERR,(L"[CAMTEST:ERROR] IOCTL_CAM_RSC_REQUEST Failed\n")……
IOCTL_CAM_RSC_RELEASE
[RAWCAM] CAM_IOControl(pOpenHead=0xd7370600, dwCode=0x00042074)
+CAM_IOControl(pOpenHead=0xD7370600, dwCode=0x42074, pBufIn=0x0, dwLenIn=0, pBufOut=0x0, dwLenOut=0, pdwActualOut=0x2FD88)
CloseHandle(hCamDrv=0xD736FE60)
[RAWCAM] +++CAM_Close(pOpenHead=0xd7370600)
CAM_Close: ( pCAMHead->OpenCnt = 0)
-->Ready to call HWClose
-->Returned from HWClose
[RAWCAM] ---CAM_Close
Exception 'Data Abort' (4): Thread-Id=07ba000a(pth=849c142c), Proc-Id=07b6000a(pprc=849c130c) 'cameraif_test.exe', VM-active=07b6000a(pprc=849c130c) 'cameraif_test.exe'
PC=80118df0(kernel.dll+0x00007df0) RA=80118eec(kernel.dll+0x00007eec) SP=d736fc80, BVA=0002ff08
Exception 'Data Abort' (4): Thread-Id=07ba000a(pth=849c142c), Proc-Id=07b6000a(pprc=849c130c) 'cameraif_test.exe', VM-active=07b6000a(pprc=849c130c) 'cameraif_test.exe'
PC=8011819c(kernel.dll+0x0000719c) RA=00000001(???+0x00000001) SP=d736f870, BVA=0002fefc
Exception 'Data Abort' (4): Thread-Id=07ba000a(pth=849c142c), Proc-Id=07b6000a(pprc=849c130c) 'cameraif_test.exe', VM-active=07b6000a(pprc=849c130c) 'cameraif_test.exe'
PC=801189c0(kernel.dll+0x000079c0) RA=fffff000(???+0xfffff000) SP=d736f890, BVA=0002fefc
Exception 'Raised Exception'(-1) Thread-Id=07ba000a(pth=849c142c) PC=801189c0 BVA=00000000
R0=d736f804 R1=d736f750 R2=c0082810 R3=d736f8c8
R4=00000001 R5=d736f8c8 R6=c00828c0 R7=00000008
R8=00000001 R9=80118ba4 R10=d736f734 R11=c0082c14
R12=80118df0 SP=d736f890 Lr=051fc000 Psr=6000001f
就是这种状况。
[RAWCAM] +++CAM_Close(pOpenHead=0xd7370600)
CAM_Close: ( pCAMHead->OpenCnt = 0)
-->Ready to call HWClose
-->Returned from HWClose
[RAWCAM] ---CAM_Close
这些输出应该是在
[RAWCAM] CAM_IOControl(pOpenHead=0xd7370600, dwCode=0x00042074)
+CAM_IOControl(pOpenHead=0xD7370600, dwCode=0x42074, pBufIn=0x0, dwLenIn=0, pBufOut=0x0, dwLenOut=0, pdwActualOut=0x2FD88)
这里面输出的。但是却跑到CloseHandle(hCamDrv=0xD736FE60)后面去了。