コード例 #1
0
ファイル: SymWriter.cs プロジェクト: xsword911/Cosmos
        public void Dispose()
        {
            // If the underlying symbol API supports the Destroy method, then call it.
            ISymUnmanagedDispose disposer = m_target as ISymUnmanagedDispose;

            if (disposer != null)
            {
                disposer.Destroy();
            }
            m_target = null;
        }
コード例 #2
0
ファイル: SymReader.cs プロジェクト: pavel-zeman/nstack
        public void Dispose()
        {
            // Release our unmanaged resources
            // If the underlying symbol reader supports an explicit dispose interface to release it's resources,
            // then call it.
            ISymUnmanagedDispose disposer = m_reader as ISymUnmanagedDispose;

            if (disposer != null)
            {
                disposer.Destroy();
            }

            m_reader = null;
        }