Exemplo n.º 1
0
        // Global exeption handlers
        private static void ThreadExceptionHandler( object sender, ThreadExceptionEventArgs args )
        {
            try
            {
                // Write to error log
                MarketScanner.Common.FileHandler filehandler = new FileHandler();
                filehandler.WriteErrorLog( args.Exception );

                frmError errWindow = new frmError();
                errWindow.StartPosition = FormStartPosition.CenterParent;
                errWindow.ErrorMessage = args.Exception.ToString();
                errWindow.Show();
            }
            catch
            {
            }
        }
Exemplo n.º 2
0
        // Global exeption handlers
        private static void ThreadExceptionHandler(object sender, ThreadExceptionEventArgs args)
        {
            try
            {
                // Write to error log
                MarketScanner.Common.FileHandler filehandler = new FileHandler();
                filehandler.WriteErrorLog(args.Exception);

                frmError errWindow = new frmError();
                errWindow.StartPosition = FormStartPosition.CenterParent;
                errWindow.ErrorMessage  = args.Exception.ToString();
                errWindow.Show();
            }
            catch
            {
            }
        }