Skip to content
Snippets Groups Projects
Commit 6dad8af5 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

On windows create process with DETACHED_PROCESS flag to remove the console

parent 0ff5d77e
No related branches found
No related tags found
No related merge requests found
...@@ -185,7 +185,8 @@ int SystemCall(std::string command) ...@@ -185,7 +185,8 @@ int SystemCall(std::string command)
suInfo.cb = sizeof(suInfo); suInfo.cb = sizeof(suInfo);
Msg::Info("Calling '%s'", command.c_str()); Msg::Info("Calling '%s'", command.c_str());
CreateProcess(NULL, (char*)command.c_str(), NULL, NULL, FALSE, CreateProcess(NULL, (char*)command.c_str(), NULL, NULL, FALSE,
NORMAL_PRIORITY_CLASS, NULL, NULL, &suInfo, &prInfo); NORMAL_PRIORITY_CLASS|DETACHED_PROCESS, NULL, NULL,
&suInfo, &prInfo);
return 0; return 0;
#else #else
if(!system(NULL)) { if(!system(NULL)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment