コード例 #1
0
 private static void SetupErrorHandling()
 {
     ErrorReport.EmailAddress = "*****@*****.**".Replace("spam", "issues");
     ErrorReport.AddStandardProperties();
     ExceptionHandler.Init();
     ExceptionHandler.AddDelegate((w, e) => DesktopAnalytics.Analytics.ReportException(e.Exception));
 }
コード例 #2
0
        /// ------------------------------------------------------------------------------------
        private static void SetUpErrorHandling()
        {
            Palaso.Reporting.ErrorReport.EmailAddress = "*****@*****.**";
            Palaso.Reporting.ErrorReport.AddStandardProperties();
            Palaso.Reporting.ExceptionHandler.Init();

            ExceptionHandler.AddDelegate((w, e) => DesktopAnalytics.Analytics.ReportException(e.Exception));
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: witheej/Glyssen
 private static void SetUpErrorHandling()
 {
     ErrorReport.SetErrorReporter(new WinFormsErrorReporter());
     ErrorReport.EmailAddress = IssuesEmailAddress;
     ErrorReport.AddStandardProperties();
     ExceptionHandler.Init(new WinFormsExceptionHandler());
     ExceptionHandler.AddDelegate(ReportError);
 }
コード例 #4
0
 /// ------------------------------------------------------------------------------------
 private static void SetUpErrorHandling()
 {
     if (ErrorReport.EmailAddress == null)
     {
         ExceptionHandler.Init();
         ErrorReport.EmailAddress = IssuesEmailAddress;
         ErrorReport.AddStandardProperties();
         ExceptionHandler.AddDelegate(ReportError);
     }
 }
コード例 #5
0
        /// ------------------------------------------------------------------------------------
        private ProjectWindow()
        {
            Logger.WriteEvent("ProjectWindow constructor");

            ExceptionHandler.AddDelegate(AudioUtils.HandleGlobalNAudioException);

            InitializeComponent();
            _titleFmt = Text;
            _menuShowMPlayerDebugWindow.Tag = _menuProject.DropDownItems.IndexOf(_menuShowMPlayerDebugWindow);
            _menuProject.DropDownItems.Remove(_menuShowMPlayerDebugWindow);
        }
コード例 #6
0
        /// ------------------------------------------------------------------------------------
        private static void SetUpErrorHandling()
        {
            Application.ApplicationExit += (sender, args) => ExternalProcess.CleanUpAllProcesses();
            Application.ThreadException += (sender, args) => ExternalProcess.CleanUpAllProcesses();
            AppDomain.CurrentDomain.UnhandledException += (sender, args) => ExternalProcess.CleanUpAllProcesses();

            ErrorReport.EmailAddress = "*****@*****.**";
            ErrorReport.AddStandardProperties();
            ExceptionHandler.Init();
            ExceptionHandler.AddDelegate((w, e) => Analytics.ReportException(e.Exception));
        }