running the test sample

Topics: User Forum
Oct 23, 2006 at 1:48 AM
Hi - I ran your first sample provided after downloading the binaries. I received an error on the using statement (for IRenderer): Error 1 'Splicer.Renderer.IRenderer': type used in a using statement must be implicitly convertible to 'System.IDisposable' C:\Documents and Settings\User\My Documents\Visual Studio 2005\Projects\TestSplicer\TestSplicer\Program.cs 94 17 TestSplicer
Oct 31, 2006 at 10:45 PM
Sorry about that the examples are out of date - after a bit of refactoring it was decided that the IRenderer interface shouldn't implement IDisposable, just the specific renderer implementations - so it should read:

using (WindowsMediaRenderer renderer = new WindowsMediaRenderer(timeline, outputFile, WindowsMediaProfiles.HighQualityVideo))

WindowsMediaRenderer does implement IDisposable.


- Alex