Skip to content

Commit 1408d61

Browse files
committed
DParser: no error reporting if DParser crashes, cherry picked from https://github.com/dlang/visuald/pull/56/files
1 parent ca75e9d commit 1408d61

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vdc/abothe/comserver/COM/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ static class Program
77
/// </summary>
88
static void Main(string[] args)
99
{
10+
SetErrorMode(3); //don't show JitDebugger on crash
11+
1012
// Run the out-of-process COM server
1113
ExeCOMServer.Instance.Run();
1214
}
15+
16+
[DllImport("Kernel32.dll")]
17+
public static extern uint SetErrorMode(uint mode);
1318
}
1419
}

0 commit comments

Comments
 (0)