2 using System.Collections.Generic;
5 using System.Runtime.InteropServices;
8 namespace SeciUserInterface
21 comObj.InitialiseCom();
25 app.MainWindow.Show();
51 String loc = System.Reflection.Assembly.GetExecutingAssembly().Location;
52 String file = loc.Substring(0, loc.LastIndexOf(
'\\')) +
"\\Seci_crash.log";
53 using (StreamWriter sw =
new StreamWriter(file,
true))
55 String date = DateTime.Now.ToShortDateString() +
" " + DateTime.Now.ToShortTimeString();
56 sw.WriteLine(date +
" " + err.Message +
" " + err.Source);
57 sw.WriteLine(err.StackTrace);
63 System.Diagnostics.Process[] procList;
64 procList = System.Diagnostics.Process.GetProcessesByName(
"SeciUserInterface");
66 if (procList.GetLength(0) > 1)
static void app_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
Interaction logic for SeciUserInterface.xaml
This class is for accessing Seci via COM. The COM interface is registered when Seci starts and unregi...
static void DumpErrorToFile(Exception err)
static Boolean SeciRunning()