Description:
updated box for windows to prevent error modal dialog
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r131:d5c4e1d8daa2 - - 1 file changed: 3 inserted, 0 deleted
@@ -299,12 +299,15 | |||
|
299 | 299 | int execute(char *exname, char *inname, char *outname, double t, int max_mem) |
|
300 | 300 | { |
|
301 | 301 | STARTUPINFO si; |
|
302 | 302 | PROCESS_INFORMATION pi; |
|
303 | 303 | int ifsuccess = EXE_RESULT_OK; |
|
304 | 304 | |
|
305 | + SetErrorMode(SEM_FAILCRITICALERRORS); | |
|
306 | + SetErrorMode(SEM_NOGPFAULTERRORBOX); | |
|
307 | + | |
|
305 | 308 | ZeroMemory(&si, sizeof(si)); |
|
306 | 309 | si.cb = sizeof(si); |
|
307 | 310 | ZeroMemory(&pi, sizeof(pi)); |
|
308 | 311 | |
|
309 | 312 | setstartupinfo(&si, inname, outname); |
|
310 | 313 |
You need to be logged in to leave comments.
Login now