Skip to content

Commit daa95a2

Browse files
committed
capture exception with Process.Start
1 parent e74c871 commit daa95a2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

LenovoFanManagementApp/DellFanManagementGuiForm.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,14 @@ private void EditFanSpeedEventHandler(Object sender, EventArgs e)
10591059
{
10601060
File.Copy(strLogTempl, strLogFile);
10611061
}
1062-
Process.Start("notepad.exe", strLogFile);
1062+
try
1063+
{
1064+
Process.Start("notepad.exe", strLogFile);
1065+
}
1066+
catch(Exception expt)
1067+
{
1068+
1069+
}
10631070
}
10641071

10651072
/// <summary>

0 commit comments

Comments
 (0)