public static void CommonTerminate() { #if DEBUG Debug.Assert(ShutdownBlocker.Instance == null); Debug.Assert(!SendInputEx.IsSending); // GC.Collect(); // Force invocation of destructors #endif AppLogEx.Close(); if (m_tempFilesPool != null) { m_tempFilesPool.Clear(TempClearFlags.All); m_tempFilesPool.WaitForThreads(); } EnableThemingInScope.StaticDispose(); MonoWorkarounds.Terminate(); #if KP_DEVSNAP if (m_bAsmResReg) { AppDomain.CurrentDomain.AssemblyResolve -= Program.AssemblyResolve; m_bAsmResReg = false; } else { Debug.Assert(false); } #endif }
public static void CommonTerminate() { #if DEBUG Debug.Assert(ShutdownBlocker.Instance == null); Debug.Assert(!SendInputEx.IsSending); // GC.Collect(); // Force invocation of destructors #endif AppLogEx.Close(); if (m_tempFilesPool != null) { m_tempFilesPool.Clear(TempClearFlags.All); m_tempFilesPool.WaitForThreads(); } EnableThemingInScope.StaticDispose(); MonoWorkarounds.Terminate(); }