VMR9Allocator (DirectShow .NET + SlimDX)

1

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.

.net
directx
directshow
slimdx
asked on Stack Overflow Nov 21, 2008 by faulty • edited Dec 13, 2017 by KDeogharkar

1 Answer

0

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

answered on Stack Overflow Nov 24, 2008 by faulty • edited Nov 18, 2012 by faulty

User contributions licensed under CC BY-SA 3.0