本文介绍了如何解决错误deviceinuseexception的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I using following code : https://www.codeproject.com/Articles/13848/Video-File-Saving-in-Windows-Media-Video-Format-fo In surface 3 windows 10 pro , application throw exception "video device is in use or cannot be rendered".
我尝试过:
What I have tried:
Please explain DeviceInUseException exception to me.And please tell me any solution for resolve this problem.Thanks
推荐答案
Quote:
我还没有用VS 2008测试这个例子。 DirectShowLib V2.0还可以,我认为你也应该使用选项VS2005(VS 2005也需要)。您可能需要更正Direct.Capture目录和DirectShowLib文件的目录/文件名。这是系统相关的。
I did not test this example with VS 2008 yet. DirectShowLib V2.0 is ok, I think you should also use option VS2005 (also needed for VS 2005). Probably you have to correct the Direct.Capture directory and the directory/filename of theDirectShowLib file. That is system dependent.
可能是示例程序需要较旧的 DirectX 版本,可能是DirectX 9.请参阅: []
It could be that the example program needs an older DirectX version, probably DirectX 9. See: Download DirectX 9, 10, 11 Offline Installers[^]
这篇关于如何解决错误deviceinuseexception的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!