Sporadic Render hang

Geetha 1 Reputation point
2023-07-24T16:55:03.8566667+00:00

Hi All,

Sporadically either RenderOpen or Render method hangs and does not execute further.

Below is code snippet, we have tried using SoftwareOnly render mode also. But issue still persists.

RenderTargetBitmap rtb = new RenderTargetBitmap(320, 240, 96, 96, PixelFormats.Pbgra32);
DrawingVisual dv = new DrawingVisual();
using (DrawingContext dc = dv.RenderOpen())
{
	dc.DrawVideo(player, new Rect(0, 0, 320, 240)); // player is of WindowsMediaPlayer
}
rtb.Render(dv);
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
9,955 questions
{count} votes