Пример #1
0
        static public void LogException(Exception e)
        {
            string fileName = BugTracking.WriteExceptionRecord(e);

            System.Windows.Forms.MessageBox.Show(null,
                                                 "A fatal error occured.  Please send the following bug report to [email protected]:\n" +
                                                 fileName,
                                                 Application.ProductName,
                                                 MessageBoxButtons.OK,
                                                 MessageBoxIcon.Error);
        }
Пример #2
0
        //--------------------------------------------------------------------------------------------

        static public void OnThreadException(object o, ThreadExceptionEventArgs e)
        {
            BugTracking.LogException(e.Exception);
        }