views:

344

answers:

0

I just downloaded a trial version of the GraphEditPlus utlity at http://www.thedeemon.com/GraphEditPlus. It is able to export C# code and expects the DirectShow.NET library to be present. The trial version does not let you copy the exported code, but at least it shows you the code.

So, I created a simple graph of an IP camera source filter and rendered it. Automatically rendering the output pin of the source filter adds a standard color space converter filter and a video renderer filter. I run the graph and the video appears.

I meticulously copied the code to a new C# Windows Console application in VS 2005 and ran it. The ActiveMovie window appears and displays the video, but only for about 5 seconds, then the ActiveMovie window goes white. The console displays a "." every 500ms for 20 seconds then the program terminates. This occurs properly.

Does anyone have any ideas as to why the video only displays for a few seconds? Could it be a garbage collection issue in .NET?

Thanks, Mark