Ejemplo n.º 1
0
        }// Notify

        //-------------------------------------------------
        // Destroy
        //
        // This cleans up whatever needs to be cleaned up.
        // Normally, this would be used to release any interfaces
        // we had that traced back to the console. We can do this
        // by removing any references we have to the interfaces...
        //-------------------------------------------------
        public void Destroy()
        {
            if (m_Component != null)
            {
                CNodeManager.Shutdown();
                CResourceStore.Shutdown();
                CHTMLFileGen.Shutdown();
                CCommandHistory.Shutdown();
                m_Component = null;
                m_rn        = null;
            }

            if ((m_ucsole != null) && (Marshal.IsComObject(m_ucsole)))
            {
                Marshal.ReleaseComObject(m_ucsole);
            }
        }// Destroy