diff options
author | sr55 <[email protected]> | 2007-08-22 18:48:40 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-08-22 18:48:40 +0000 |
commit | 5b79c836c803fe8b7706bf06485656f889478f7f (patch) | |
tree | 9da98d6aae57ef1d3f9281a1c7b51352030e3606 /win/C#/frmReadDVD.cs | |
parent | 784d350cf62da4ee14042e573d42765db84ddf1f (diff) |
WinGui:
- Added some more exception handling.
- Added workaround for issue with scanning on French systems causing a crash.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@850 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmReadDVD.cs')
-rw-r--r-- | win/C#/frmReadDVD.cs | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/win/C#/frmReadDVD.cs b/win/C#/frmReadDVD.cs index ca6d23342..ad5551188 100644 --- a/win/C#/frmReadDVD.cs +++ b/win/C#/frmReadDVD.cs @@ -20,7 +20,7 @@ namespace Handbrake private Parsing.DVD thisDvd;
private Process hbProc;
private delegate void UpdateUIHandler();
- private int cancel = 0;
+ //private int cancel = 0;
public frmReadDVD(string inputFile, frmMain parent, frmDvdInfo dvdInfoWindow)
{
@@ -32,7 +32,7 @@ namespace Handbrake private void btn_ok_Click(object sender, EventArgs e)
{
-
+
try
{
btn_ok.Enabled = false;
@@ -90,22 +90,27 @@ namespace Handbrake string strCmdLine = "cmd /c " + '"' + '"' + appPath + "\\hbcli.exe" + '"' + " -i" + '"' + inputFile + '"' + " -t0 >" + '"'+ appPath + "\\dvdinfo.dat" + '"' + " 2>&1" + '"';
Process hbproc = Process.Start("CMD.exe", strCmdLine);
hbproc.WaitForExit();
+ hbproc.Dispose();
+ hbproc.Close();
StreamReader sr = new StreamReader(appPath + "dvdinfo.dat");
-
thisDvd = Parsing.DVD.Parse(sr);
sr.Close();
+
Console.ReadLine();
+
updateUIElements();
}
catch (Exception exc)
{
MessageBox.Show(exc.ToString());
}
- //*********************************************************************************************************************************************
+ }
+
+ //*********************************************************************************************************************************************
/*
* This has been temporily disabled due to the stderr issue
*
@@ -125,7 +130,8 @@ namespace Handbrake process.closeCLI();
}
*/
- }
+ //*********************************************************************************************************************************************
+
/*private void Parser_OnScanProgress(object Sender, int CurrentTitle, int TitleCount)
{
@@ -147,7 +153,7 @@ namespace Handbrake try
{
this.Close();
- cancel = 1;
+ //cancel = 1;
}
catch (Exception exc)
{
|