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; } }
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; } }