Sporadic Render hang

Geetha 1 Reputation point

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
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