enumD.CreateClassEnumerator(ref g, out moniker, 0) returns 1

Nov 13, 2013 at 11:20 AM
I'm trying to add a new window to my wpf project that shows a webcam, but I get an exception on at InitializeComponent() startup.

Searching I found that enumD.CreateClassEnumerator(ref g, out moniker, 0) returns "1" at "CapDevice.cs", and I don't know why.

If I start a new project and copy that window, works fine.

My project uses framework 4 client, so I changed the framework of the new project and it started to fail, but if I change again to framework 4.5 the problem persists.

Can anyone help me?