private void CreateRenderingFrame() { GC.Collect(); _renderingFrame = new RenderingFrame(); _renderingFrame.HandleDestroyed += new EventHandler(renderFrame_HandleDestroyed); }
void renderFrame_HandleDestroyed(object sender, EventArgs e) { MediaRenderer.DefaultInstance.StopRenderer(true); MediaRenderer.DefaultInstance.RenderPanel = null; MediaRenderer.DefaultInstance.MessageDrain = null; _renderingFrame = null; GC.Collect(); }
private void CreateRenderingFrame() { GC.Collect(); _renderingFrame = new RenderingFrame(); _renderingFrame.HandleDestroyed += new EventHandler(renderFrame_HandleDestroyed); }
void renderFrame_HandleDestroyed(object sender, EventArgs e) { MediaRenderer.DefaultInstance.StopRenderer(); MediaRenderer.DefaultInstance.RenderPanel = null; MediaRenderer.DefaultInstance.MessageDrain = null; _renderingFrame = null; GC.Collect(); }