summaryrefslogtreecommitdiffstats
path: root/win/C#/frmDvdInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/frmDvdInfo.cs')
-rw-r--r--win/C#/frmDvdInfo.cs27
1 files changed, 17 insertions, 10 deletions
diff --git a/win/C#/frmDvdInfo.cs b/win/C#/frmDvdInfo.cs
index 7f503227d..3b2cfd87d 100644
--- a/win/C#/frmDvdInfo.cs
+++ b/win/C#/frmDvdInfo.cs
@@ -20,18 +20,25 @@ namespace Handbrake
InitializeComponent();
this.rtf_dvdInfo.Text = string.Empty;
- string appPath = Application.StartupPath.ToString();
- appPath = appPath + "\\";
- StreamReader sr = new StreamReader(appPath + "dvdinfo.dat");
-
- string line = sr.ReadLine();
-
- while (line != null)
+ try
{
- this.rtf_dvdInfo.AppendText(line + System.Environment.NewLine);
- line = sr.ReadLine();
+ string appPath = Application.StartupPath.ToString();
+ appPath = appPath + "\\";
+ StreamReader sr = new StreamReader(appPath + "dvdinfo.dat");
+
+ string line = sr.ReadLine();
+
+ while (line != null)
+ {
+ this.rtf_dvdInfo.AppendText(line + System.Environment.NewLine);
+ line = sr.ReadLine();
+ }
+ sr.Close();
+ }
+ catch (Exception)
+ {
+ // Don't do anything
}
- sr.Close();
}
/*public void HandleParsedData(object Sender, string Data)