views:

579

answers:

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.

Any idea guys?

NOTE: I've asked the same question over at gamedev.net 2 weeks back, no answer thus far.

A: 

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 M$ Gotcha

faulty