From 61754097d357885dcd728c088ef7ebb17f1ead72 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 9 Jan 2010 21:25:02 +0000 Subject: [PATCH] WinGui: - Don't throw errors when the activity window is disposing. Should probably find a better solution to this at some point. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3058 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/frmActivityWindow.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/win/C#/frmActivityWindow.cs b/win/C#/frmActivityWindow.cs index d7a961918..a4d5cd215 100644 --- a/win/C#/frmActivityWindow.cs +++ b/win/C#/frmActivityWindow.cs @@ -131,9 +131,9 @@ namespace Handbrake rtf_actLog.AppendText(text.ToString()); } } - catch (Exception exc) + catch (Exception) { - MessageBox.Show("Unless you are having problems, you can probably ignore this error. It would not hurt to report this error!\n\nSetWindowText(): Exception: \n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Information); + return; } } private void ClearWindowText() @@ -152,9 +152,9 @@ namespace Handbrake rtf_actLog.Clear(); } } - catch (Exception exc) + catch (Exception) { - MessageBox.Show("Unless you are having problems, you can probably ignore this error. It would not hurt to report this error!\n\nClearWindowText(): Exception: \n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Information); + return; } } private void PrintLogHeader() @@ -190,9 +190,9 @@ namespace Handbrake } } } - catch (Exception exc) + catch (Exception) { - MessageBox.Show("Unless you are having problems, you can probably ignore this error. It would not hurt to report this error!\n\nPrintLogHeader(): Exception: \n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Information); + return; } } @@ -203,7 +203,7 @@ namespace Handbrake Position = 0; ClearWindowText(); PrintLogHeader(); - WindowTimer = new Timer(new TimerCallback(LogMonitor), null, 2000, 1000); + WindowTimer = new Timer(new TimerCallback(LogMonitor), null, 1000, 1000); } #region Public -- 2.40.0