[chronojump] processMultidatabases fixed if callR process ends



commit dc606c82b6c5f4be43953f9062766f40ce6f8459
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Dec 24 14:52:59 2019 +0100

    processMultidatabases fixed if callR process ends

 processMultiDatabases/callR.cs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/processMultiDatabases/callR.cs b/processMultiDatabases/callR.cs
index 86119322..a3c6c3f4 100644
--- a/processMultiDatabases/callR.cs
+++ b/processMultiDatabases/callR.cs
@@ -145,7 +145,12 @@ public class CallR
                                copyExportedFile();
                                */
 
-                       p.StandardInput.WriteLine("Q");
+                       try {
+                               p.StandardInput.WriteLine("Q");
+                       } catch {
+                               Console.WriteLine("catched at CallR at sending the Q, maybe process has 
exited.");
+                               return false;
+                       }
 
 //             } catch {
 //                     Console.WriteLine("catched at startProcess");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]