Пример #1
0
        private void CreateRenderingFrame()
        {
            GC.Collect();

            _renderingFrame = new RenderingFrame();
            _renderingFrame.HandleDestroyed += new EventHandler(renderFrame_HandleDestroyed);
        }
Пример #2
0
        void renderFrame_HandleDestroyed(object sender, EventArgs e)
        {
            MediaRenderer.DefaultInstance.StopRenderer(true);
            MediaRenderer.DefaultInstance.RenderPanel  = null;
            MediaRenderer.DefaultInstance.MessageDrain = null;

            _renderingFrame = null;
            GC.Collect();
        }
Пример #3
0
        private void CreateRenderingFrame()
        {
            GC.Collect();

            _renderingFrame = new RenderingFrame();
            _renderingFrame.HandleDestroyed += new EventHandler(renderFrame_HandleDestroyed);
        }
Пример #4
0
 void renderFrame_HandleDestroyed(object sender, EventArgs e)
 {
     MediaRenderer.DefaultInstance.StopRenderer();
     MediaRenderer.DefaultInstance.RenderPanel = null;
     MediaRenderer.DefaultInstance.MessageDrain = null;
 
     _renderingFrame = null;
     GC.Collect();
 }