VixenApplication.Program.LogMessageAndExit C# (CSharp) Method

LogMessageAndExit() private static method

private static LogMessageAndExit ( Exception ex ) : void
ex System.Exception
return void
        private static void LogMessageAndExit(Exception ex)
        {
            // Since we can't prevent the app from terminating, log this to the event log.
            Logging.Fatal(ErrorMsg, ex);
            if (_app != null)
            {
                _app.RemoveLockFile();
            }
            Environment.Exit(1);
        }