예제 #1
0
        private static void ShowCrashReport(string[] args)
        {
            if (args.Contains("--debug") && Debugger.IsAttached == false)
            {
                Debugger.Launch();
            }
            CrashDumper dmper = null;

            try
            {
                dmper = new CrashDumper(args[0]);
                frmCrashReporter reporter = new frmCrashReporter(dmper);

                Application.Run(reporter);

                if (reporter.DialogResult == DialogResult.OK)
                {
                    Application.Run(new frmNoMoreUserInput(dmper));
                }
            }
            finally
            {
                //Last ditch attempt at closing chummer if not done yet
                try
                {
                    dmper?.Process?.Kill();
                } catch { }
            }
        }
예제 #2
0
        private static void ShowCrashReport(string[] obj)
        {
            CrashDumper dmper = null;

            try
            {
                dmper = new CrashDumper(obj[0]);
                frmCrashReporter reporter = new frmCrashReporter(dmper);

                Application.Run(reporter);

                if (reporter.DialogResult == DialogResult.OK)
                {
                    Application.Run(new frmNoMoreUserInput(dmper));
                }
            }
            finally
            {
                //Last ditch attempt at closing chummer if not done yet
                try
                {
                    dmper?.Process?.Kill();
                } catch { }
            }
        }