I'm using COM interop to access DirectShow from C#. I had to rewrite some of the interfaces in C# by hand, but some were available in a quartz.dll for automatic import.
The problem is, that when I attempt to use any of the imported properties I get strage exceptions. I've attempted it on IVideoWindow Visible property. I rewrote the relevant part of the interface, and I also looked at the automatically generated interfaces from quartz.dll under Ildasm. They look very similar. What's really strange is that they both fail. They compile just fine, but when I try to use the property I get the exception: Unhandled Exception: System.InvalidCastException: No such interface supported at VideoInspector.DirectShow.Control.IVideoWindow.get_Visible() Ironically, using the put_Visible and get_Visible instead worked just fine. Does anyone have any idea what I may be doing wrong? Or is it a known bug? Thanks, Andrew You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.