Error HRESULT E_FAIL has been returned from a call to a COM component

后端 未结 25 1068
情书的邮戳
情书的邮戳 2020-12-24 05:01

In Silverlight 4 app; what does this error mean?:

\"Error HRESULT E_FAIL has been returned from a call to a COM component.\"

It

相关标签:
25条回答
  • 2020-12-24 06:06

    I had this problem while I was encoding Live video and audio (using Microsoft Expression) and the next piece of code throws the exception randomly:

    // Set bitrate
    liveJob.OutputFormat.VideoProfile.Bitrate = new ConstantBitrate(2500);
    
    // Set Video size
    liveJob.OutputFormat.VideoProfile.Size = new Size(320,240); 
    

    until i've figured out that the second line throws the exception while the first one is still running in another thread !

    and of course, it was my fault - i've called the method in code, and it was also been called by Click event...

    0 讨论(0)
提交回复
热议问题