/// <summary> /// Stops this instance of Krento and dispose Krento context. /// </summary> internal void Stop() { TraceDebug.Trace("Stop Krento"); if (context != null) { try { if (splashScreen != null) { splashScreen.Dispose(); splashScreen = null; } context.StopServer(); context.UnloadKrentoPlugins(); context.UnloadKrentoToys(); context.UnloadKrentoDocklets(); context.UnloadRingImage(); context.Dispose(); context = null; } catch (Exception ex) { TraceDebug.Trace("Exception in Startup.Stop: " + ex.Message); context = null; } } }
/// <summary> /// Stops this instance of Krento and dispose Krento context. /// </summary> internal void Stop() { TraceDebug.Trace("Stop Krento"); if (context != null) { try { context.StopServer(); context.UnloadKrentoPlugins(); context.UnloadKrentoToys(); context.UnloadKrentoDocklets(); context.UnloadRingImage(); context.Dispose(); context = null; } catch (Exception ex) { TraceDebug.Trace("Exception in Startup.Stop: " + ex.Message); context = null; } } CentralPoint.Shutdown(); }