[chronojump] More debug info for webcam windows
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] More debug info for webcam windows
- Date: Fri, 16 Nov 2018 17:11:23 +0000 (UTC)
commit 4afa121dcf0ece130960f1a3032ef31394a8ed70
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Nov 16 18:10:57 2018 +0100
More debug info for webcam windows
src/executeProcess.cs | 26 ++++++++++++++++++++++----
1 file changed, 22 insertions(+), 4 deletions(-)
---
diff --git a/src/executeProcess.cs b/src/executeProcess.cs
index a65786b6..df9eb2b9 100644
--- a/src/executeProcess.cs
+++ b/src/executeProcess.cs
@@ -207,14 +207,32 @@ class ExecuteProcess
*/
public static bool IsRunning3 (int processID, string executable)
{
+ //Debug
+ Process[] pdebug;
+
+ LogB.Information("executable: ffmpeg");
+ pdebug = Process.GetProcessesByName("ffmpeg");
+ LogB.Information((pdebug.Length == 0).ToString());
+
+ LogB.Information("LastPartOfPath of executable: " + Util.GetLastPartOfPath(executable));
+ pdebug = Process.GetProcessesByName(Util.GetLastPartOfPath(executable));
+ LogB.Information((pdebug.Length == 0).ToString());
+
+ LogB.Information("executable: " + executable);
+ pdebug = Process.GetProcessesByName(executable);
+ LogB.Information((pdebug.Length == 0).ToString());
+
//Debug
Process[] allThisMachine = Process.GetProcesses();
LogB.Information("All processes in this machine:");
foreach(Process p in allThisMachine)
- LogB.Information(p.ToString());
-
- //Debug
- LogB.Information("LastPartOfPath of executable: " + Util.GetLastPartOfPath(executable));
+ {
+ try {
+ LogB.Information(p.ToString()); //this is problematic on windows
+ } catch {
+ LogB.Information("catched at IsRunning3");
+ }
+ }
Process[] pNameArray = Process.GetProcessesByName(Util.GetLastPartOfPath(executable));
if (pNameArray.Length == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]