Ejemplo n.º 1
0
        protected override void DisposeManagedResources()
        {
            m_thread.Stop();
            m_thread.Dispose();

            if (m_parserWorker != null)
            {
                m_parserWorker.ParseFiler.WordformUpdated -= ParseFiler_WordformUpdated;
                m_parserWorker.Dispose();
                m_parserWorker = null;
            }

            if (m_TaskReport != null)
            {
                m_TaskReport.Dispose();
                m_TaskReport = null;
            }
        }
Ejemplo n.º 2
0
        protected override void DisposeManagedResources()
        {
            if (m_thread.Stop())
            {
                Trace.WriteLineIf(m_tracingSwitch.TraceInfo, "==== ParserScheduler thread Successfully shutdown.");
            }
            else
            {
                Trace.WriteLineIf(m_tracingSwitch.TraceError, "**** ERROR : ParserScheduler Thread didn't shutdown.");
            }
            m_thread.Dispose();

            m_parserWorker.ParseFiler.WordformUpdated -= ParseFiler_WordformUpdated;
            m_parserWorker.Dispose();

            if (m_TaskReport != null)
            {
                m_TaskReport.Dispose();
                m_TaskReport = null;
            }
        }