于仕琪老师的CCameraDS类,取得摄像头图像时,程序会自动退出?
用于仕琪老师所编写的CCameraDS类取得摄像头图像时,在CCameraDS::OpenCamera()程序会自动退出,提示返回值0.CCameraDS类取得摄像头图像时,其中的CCameraDS::OpenCamera()运行到会hr = m_pGraph->Connect(m_pCameraOutput, m_pGrabberInput);hr = m_pGraph->Connect(m_pGrabberOutput, m_pNullInputPin);时,会自动退出,提示返回值0。如果按ctrl+F5调试,能够很好运行。
问题是,这样的话,每次调试时都自动退出,我的程序没法向后面写了。
退出的提示信息:
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded 'C:\Program Files\Common Files\Nero\DSFilter\NeVideo.ax', no matching symbolic information found.
The thread 0x134 has exited with code 0 (0x0).
The thread 0x17DC has exited with code 0 (0x0).
The program 'D:\Microsoft Visual Studio\MyProjects\TestCamera\Debug\TestCamera.exe' has exited with code 0 (0x0).