I am looping a h264 video in a SharpDX app and occasionally I am getting a crash which I am unable to find the cause.
SharpDX.SharpDXException: HRESULT: [0xC00D36BA], Module: [Unknown], ApiCode: [Unknown/Unknown], Message: Unknown
at SharpDX.Result.CheckError()
at SharpDX.MediaFoundation.MediaFactory.GetService(ComObject unkObjectRef, Guid guidService, Guid riid, IntPtr& vObjectOut)
it is called in this function:
public static Surface GetSurfaceFromMediaBuffer(MediaBuffer videoBuffer)
{
IntPtr surfacePtr;
MediaFactory.GetService(videoBuffer, mMrBufferService, typeof (Surface).GUID, out surfacePtr);
return new Surface(surfacePtr);
}
is there something related to Surface or MediaBuffer which needs Disposing?
this is on win7, 32bit.
User contributions licensed under CC BY-SA 3.0