C# program always crash when creating Windows Media Encoder object

cencodermedianetwindows

I am using Windows Vista x86 + VSTS 2008. When creating new Windows Media Encoder object using statement

WMEncoder encoder = new WMEncoder();

My program always crash in VSTS 2008. Here is the screen snapshot. Any ideas what is wrong?

http://i40.tinypic.com/2v96uqo.jpg

thanks in advance,
George

Best Answer

It looks like the problem may be in Windows Media Encoder: http://support.microsoft.com/kb/929182

You might just have to update WME for this to work. As a test, you might try this on XP to see if it works - if so, it's likely the WME version on Vista.

This appears to be a duplicate of https://stackoverflow.com/questions/493069/wmencoder-issue