From 255ce58340981e1b7d03ffc5a9d256030bfc09a8 Mon Sep 17 00:00:00 2001 From: Dmitry Popov Date: Sun, 10 Jan 2016 04:02:37 +0300 Subject: [PATCH] don't pop up JitDebugger window if crashed; removed missing app.config from project --- vdc/abothe/comserver/DParserCOMServer.cs | 4 ++++ vdc/abothe/comserver/DParserCOMServer.csproj | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/vdc/abothe/comserver/DParserCOMServer.cs b/vdc/abothe/comserver/DParserCOMServer.cs index 946b2dc2..ed3d9dec 100644 --- a/vdc/abothe/comserver/DParserCOMServer.cs +++ b/vdc/abothe/comserver/DParserCOMServer.cs @@ -295,8 +295,12 @@ class Program /// static void Main(string[] args) { + SetErrorMode(3); //don't show JitDebugger on crash // Run the out-of-process COM server ExeCOMServer.Instance.Run(); } + + [DllImport("Kernel32.dll")] + public static extern uint SetErrorMode(uint mode); } } \ No newline at end of file diff --git a/vdc/abothe/comserver/DParserCOMServer.csproj b/vdc/abothe/comserver/DParserCOMServer.csproj index dd668b7d..cbe02fbe 100644 --- a/vdc/abothe/comserver/DParserCOMServer.csproj +++ b/vdc/abothe/comserver/DParserCOMServer.csproj @@ -71,7 +71,4 @@ DParser2 - - - \ No newline at end of file