QProcess does not work with start, but works with startDetached

I have a problem with the start dos application with Qprocess :: start.

#include <QtGui/QApplication> #include <QProcess> int main(int argc, char *argv[]) { QApplication a(argc, argv); QProcess *process = new QProcess(); process->start("c:\\femag\\wfemag_02-2013.exe"); return a.exec(); } 

the executed application at some point does not work with the error "invalid descriptor".

when i use

 process->startDetached("c:\\femag\\wfemag_02-2013.exe"); 

the application will start normally. But I need to use process-> start ().

I tried this on windows7 32 or 64 bit with the same problem. But in windows8 it works fine.

Can someone help me with this problem?

+4
source share

All Articles