Пример #1
0
 internal MDbgModule(MDbgProcess process, CorModule managedModule, int number)
 {
     Debug.Assert(process != null && managedModule != null);
     m_process   = process;
     m_module    = managedModule;
     m_functions = new MDbgFunctionMgr(this);
     m_number    = number;
 }
Пример #2
0
 internal MDbgModule(MDbgProcess process, CorModule managedModule, int number)
 {
     Debug.Assert(process != null && managedModule != null);
     m_process = process;
     m_module = managedModule;
     m_functions = new MDbgFunctionMgr(this);
     m_number = number;
 }
Пример #3
0
        /// <summary>
        /// Releases all resources used by the MDbgModule.
        /// </summary>
        public void Dispose()
        {
            // Our funtion list may hold onto unmanaged SymbolMethod objects, so dispose that too.
            m_functions.Dispose();
            m_functions = null;

            // Release unmanaged resources
            if (m_symReader != null)
            {
                // Disposing the symbol reader will release the file lock on the PDB (even when other
                // reader COM objects have yet to be released by the garbage collector).
                ((IDisposable)m_symReader).Dispose();
                m_symReader = null;
            }
            m_module = null;
            m_importer = null;
        }
Пример #4
0
        /// <summary>
        /// Releases all resources used by the MDbgModule.
        /// </summary>
        public void Dispose()
        {
            // Our funtion list may hold onto unmanaged SymbolMethod objects, so dispose that too.
            m_functions.Dispose();
            m_functions = null;

            // Release unmanaged resources.
            m_symReader = null;
            m_module = null;
            m_importer = null;
        }