TechTalkz.com Logo Ask the Expert

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Windows Media

Notices

Crash when creating an encoder object in VS 2008

Windows Media


Reply
 
Thread Tools Display Modes
Old 08-02-2008, 04:53 PM   #1
Einar
Guest
 
Posts: n/a
Crash when creating an encoder object in VS 2008

Hi

I recently converted a project created with VS 2005 to VS 2008. This project
uses the Windows Media Encoder. But after conversion the program always
crashes when creating the encoder object. The program is written in C# using
the .Net 2.0 Framework. I simply reference the WMEncoderLib in my project.

To test this isolated from everything else in my original program, I built a
very simple sample project of this in VS 2005. The project only contains one
class:
Program.cs

using System;
using WMEncoderLib;
namespace EncoderTest
{
static class Program
{
[STAThread]
static void Main()
{
WMEncoder Encoder = new WMEncoder();
}
}
}

This example runs fine when compiled with Visual Studio 2005 but when I open
the project in VS 2008 and convert it, the program crashes (the hard way)
with the following message:

"vshost.exe has stopped working"

This also happens when I run the compiled file standalone (then it's just
the main .exe file that crashes, not the vshost).

In my event log I get the following entry:
Faulting application EncoderTest.vshost.exe, version 9.0.21022.8, time stamp
0x47316898, faulting module unknown, version 0.0.0.0, time stamp 0x00000000,
exception code 0xc0000005, fault offset 0x03c43468, process id 0x70a0,
application start time 0x01c86a3f51beecd0.

Is this a known problem with the Media Encoder and VS 2008. Am I missing
something here?



  Reply With Quote
Old 19-02-2008, 04:57 PM   #2
Einar
Guest
 
Posts: n/a
RE: Crash when creating an encoder object in VS 2008

This issus seems to be the same as in "Vista + WMV9 - VS 2005 weird crash"
and "WMEncoderLib.WMEncoder crash vshost.exe"

Installing the hotfix in the below KB article helps, but ony on the computer
running the compiled application. If I build the app on the "hotfixed"
computer and then run it on antoher, my application will crash there. I
cannot expect all my customers to run this hotfix just so that I can compile
in VS 2008!

Compiling in VS 2005 on WinXP (not with VS 2008) installed still works fine
and the application runs everywhere without the hotfix.

Isn't there a better solution to this prolem than the hotfix one? Will I
have to compile my app in VS 2005 forever?

KB article :
http://support.microsoft.com/kb/929182

  Reply With Quote
Old 02-07-2008, 11:34 AM   #3
krishna joshi
Guest
 
Posts: n/a
Window Media Encoder in vista with 2008

Same problem i am getting.
Wokring on a project using window media encoder SDK and Window Media Player SDK.

Works fine with VS2008 + XP.
Doesn't work with VS2008 + Vista.

Even after installing hotfix the encoder is not working properly on the system.

It just start the encoding process but stops the encoder as it started.

Hotfix is really not a good solution.

Looking for some thing else.

Any Idea

Thanks in advance,
Krishna Joshi
  Reply With Quote
Old 02-07-2008, 11:37 AM   #4
krishna joshi
Guest
 
Posts: n/a
Window Media Encoder in vista with 2008

Same problem i am getting.
Wokring on a project using window media encoder SDK and Window Media Player SDK.

Works fine with VS2008 + XP.
Doesn't work with VS2008 + Vista.

Even after installing hotfix the encoder is not working properly on the system.

It just start the encoding process but stops the encoder as it started.

Hotfix is really not a good solution.

Looking for some thing else.

Any Idea

Thanks in advance,
Krishna Joshi
  Reply With Quote
Reply

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 07:30 PM.


vBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2010, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional