VMR9Allocator (DirectShow .NET + SlimDX)
我试图使用 SlimDX 而不是 MDX 转换并运行 DirectShow .NET 的 VMR9Allocator 示例。 这一行时,我遇到了异常
return vmrSurfaceAllocatorNotify.SetD3DDevice(unmanagedDevice, hMonitor)
当它到达Allocator.cs 中的 AdviseNotify 方法中的
。 例外的是
不支持此类接口
,hr返回的是
0x80004002
。
该示例在 MDX 上运行良好,我的 SlimDx 也可以正常工作,因为我已经使用它编写了另一个 3d 应用程序,工作正常。
我似乎无法找出出了什么问题,谷歌搜索也没有帮助。 显然没有多少人使用这种组合,而且我发现没有多少人真正遇到这个问题。
注意:两周前我在 gamedev.net 上问过同样的问题,到目前为止还没有答案。
I was trying to convert and run the VMR9Allocator sample for DirectShow .NET with SlimDX instead of MDX. I got an exception when it reach this line
return vmrSurfaceAllocatorNotify.SetD3DDevice(unmanagedDevice, hMonitor)
In the AdviseNotify method in Allocator.cs.
The exception is
No such interface supported
, and the hr return was
0x80004002
.
The sample runs fine with MDX, and my SlimDx is also working, as I've written another 3d apps using it, working fine.
I can't seems to find out what went wrong, no help from googling as well. Apparently not much ppl uses this combination, and non that i can find actually stumble into this problem.
NOTE: I've asked the same question over at gamedev.net 2 weeks back, no answer thus far.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己解决了这个问题。 这是由于使用DirectX的Debug Runtime引起的。 切换到 Retail Runtime 不会引发该错误。 微软的另一个陷阱
I've solved the problem myself. It's caused by using Debug Runtime of DirectX. Switching to Retail Runtime doesn't provoke the error. Another Microsoft Gotcha