I am using Visual Studio 2012. I am using system function to run an exe. If this exe crashes, it pops up the dialog box saying the program needed to close. But it freezes the calling program until I close the box. Is there anyway for the calling program to exit the exe and continue? It only needs to work for Windows.
I am calling like this
int ret = system((prog + "> log.txt 2>&1").c_str());
The extra is to output std out and err to a log file.
Strangly, if I remove that part it returns control just fine.
int ret = system((prog).c_str());
Any ideas?? Thanks
Edit: OK if I do this it returns control
int ret = system((prog + "> log.txt").c_str());
I got the extra characters from this website: