Beispiel #1
0
        public void Dispose()
        {
            try { _duplCapture.Dispose(); }
            catch { }
            finally { _duplCapture = null; }

            // Mouse Pointer disposed later to prevent errors.
            try { _mousePointer?.Dispose(); }
            catch { }
            finally { _mousePointer = null; }

            try { _editorSession.Dispose(); }
            catch { }
            finally { _editorSession = null; }
        }
        public void Dispose()
        {
            foreach (var entry in _outputs)
            {
                try { entry.DuplCapture.Dispose(); }
                catch { }
                finally { entry.DuplCapture = null; }

                // Mouse Pointer disposed later to prevent errors.
                try { entry.MousePointer?.Dispose(); }
                catch { }
                finally { entry.MousePointer = null; }
            }

            try { _editorSession.Dispose(); }
            catch { }
            finally { _editorSession = null; }
        }
Beispiel #3
0
 public void Dispose()
 {
     _dxgiSurface.Dispose();
     _gdiCompatibleTexture.Dispose();
     _editorSession.Dispose();
 }