{\r
cliStart.RedirectStandardOutput = true;\r
cliStart.UseShellExecute = false;\r
-\r
}\r
if (Properties.Settings.Default.cli_minimized)\r
cliStart.WindowStyle = ProcessWindowStyle.Minimized;\r
}\r
}\r
\r
- /// <summary>\r
+ /// <summar>\r
/// Append the CLI query to the start of the log file.\r
/// </summary>\r
/// <param name="query"></param>\r
string logDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\logs";\r
string logPath = Path.Combine(logDir, "last_encode_log.txt");\r
\r
- StreamReader reader = new StreamReader(File.Open(logPath, FileMode.Open, FileAccess.Read));\r
+ StreamReader reader = new StreamReader(File.Open(logPath, FileMode.Open, FileAccess.Read, FileShare.Read));\r
String log = reader.ReadToEnd();\r
reader.Close();\r
\r