Commit c77024ba authored by Johannes Kanig's avatar Johannes Kanig

P802-016 fix pop-ups for prover crashes

We set the error mode in the why3 server. This has two effects:
- disable pop-ups in case of crashes of why3server;
- inherit this setting to all spawned prover processes.

* server-win.c
(main): call SetErrorMode

Change-Id: I93862d51aebe1d4639ab1d463c08366f79375a7a
parent 410d4b48
......@@ -638,6 +638,10 @@ int main(int argc, char **argv) {
BOOL res;
pclient client;
pproc proc;
// We set the error mode here. This avoids pop-ups when the process
// crashes. Also, this setting will be inherited by prover processes, so
// that they don't open pop-ups either in case of crash.
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
parse_options(argc, argv);
init();
while (1) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment