qt - QProcess not work with start but work with startDetached -
i have problem start dos application 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 fails @ point kind of error "invalid handle".
when use
process->startdetached("c:\\femag\\wfemag_02-2013.exe");
the application starts ok. need use process->start().
i tried on windows7 32 or 64 bit same issue. in windows8 working ok.
can me problem?
Comments
Post a Comment