Exemplo n.º 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 { }
            }
        }
Exemplo n.º 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 { }
            }
        }
Exemplo n.º 3
0
        public frmNoMoreUserInput(CrashDumper dmper)
        {
            InitializeComponent();

            lblProgress.Text = dmper.Progress.GetDescription();

            dmper.CrashDumperProgressChanged += Dmper_CrashDumperProgressChanged;
        }
Exemplo n.º 4
0
        public frmNoMoreUserInput(CrashDumper dmper)
        {
            InitializeComponent();

            lblProgress.Text = dmper.Progress.GetDescription();

            dmper.CrashDumperProgressChanged += Dmper_CrashDumperProgressChanged;
        }
Exemplo n.º 5
0
 public frmCrashReporter(CrashDumper dumper)
 {
     _dumper = dumper;
     InitializeComponent();
     lblDesc.Text         = _dumper.Attributes["visible-error-friendly"];
     txtIdSelectable.Text = "Crash followup id = " + _dumper.Attributes["visible-crash-id"];
     _dumper.CrashDumperProgressChanged += DumperOnCrashDumperProgressChanged;
     _strDefaultUserStory = Md5Hash(txtUserStory.Text);
 }
Exemplo n.º 6
0
        public frmCrashReporter(CrashDumper dumper)
        {
            _dumper = dumper;
            InitializeComponent();
            lblDesc.Text = _dumper.Attributes["visible-error-friendly"];
            lblId.Text   = "Crash followup id = " + _dumper.Attributes["visible-crash-id"];

            _dumper.CrashDumperProgressChanged += DumperOnCrashDumperProgressChanged;
        }
Exemplo n.º 7
0
 public CrashReporter(CrashDumper dumper)
 {
     _dumper = dumper ?? throw new ArgumentNullException(nameof(dumper));
     InitializeComponent();
     lblDesc.Text          = _dumper.Attributes["visible-error-friendly"];
     txtIdSelectable.Text  = "Crash followup Id = " + _dumper.Attributes["visible-crash-id"];
     txtIdSelectable2.Text = "Installation Id = " + _dumper.Attributes["installation-id"];
     _dumper.CrashDumperProgressChanged += DumperOnCrashDumperProgressChanged;
 }
Exemplo n.º 8
0
        public NoMoreUserInput(CrashDumper objCrashDumper)
        {
            _objCrashDumper = objCrashDumper;
            InitializeComponent();

            if (_objCrashDumper != null)
            {
                lblProgress.Text = _objCrashDumper.Progress.GetDescription();

                _objCrashDumper.CrashDumperProgressChanged += CrashDumperProgressChanged;
            }
        }
Exemplo n.º 9
0
        private static void ShowCrashReport(string[] args)
        {
            if (args.Contains("--debug") && !Debugger.IsAttached)
            {
                Debugger.Launch();
            }

            using (CrashDumper objDumper = new CrashDumper(args[0]))
            {
                Application.Run(new CrashReporter(objDumper));
            }
        }
Exemplo n.º 10
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 { }
            }
        }