problem with System()
- 
well you can use 
 qDebug() "qproc: " << myProcess->error();and check the code in 
 http://doc.qt.io/qt-5/qprocess.html#ProcessError-enum
- 
well you can use 
 qDebug() "qproc: " << myProcess->error();and check the code in 
 http://doc.qt.io/qt-5/qprocess.html#ProcessError-enum
- 
" This is the default return value of error()." You do call it AFTER u call 
 myProcess->start(program,arguments); ?
- 
@mrjj Yes: myProcess->start(program, arguments); QProcess::ProcessError error = myProcess->error();
- 
@AlvaroS 
 hmm really odd then
 it should say FailedToStartJust to be 100% clear. princi is never run ? @mrjj said: @AlvaroS 
 hmm really odd then
 it should say FailedToStartJust to be 100% clear. princi is never run ? okey look. 
 if I write:myProcess->start(program, arguments); myProcess->waitForFinished(3000); QProcess::ProcessError error = myProcess->error();Now error says: 
 QProcess::Crashed The process crashed some time after starting successfully.
- 
so it sounds like your princi do run but it crashes? oh. sorry my bad. start is async so calling error right after was 
 not correct.waitForFinished fixed that. 
- 
so it sounds like your princi do run but it crashes? oh. sorry my bad. start is async so calling error right after was 
 not correct.waitForFinished fixed that. @mrjj Yes... I think so... 
 How should I pass the arguments?the arguments of princi are: 0 wps.front().x() wps.front().y() 0 wps.back().x() wps.front().y() prueba_princi.bmp 0 0 +so my QStringList arguments is: QStringList arguments; arguments << "0" << QString::number(wps.front().x()) << QString::number(wps.front().y()) << "0" << QString::number(wps.back().x()) << QString::number(wps.back().y()) << "prueba_princi.bmp" << "0" << "0" << "+" ;
- 
it seems fine 
 You should look inside princi for how it
 reads it. it must be that part that is crashing ?
- 
it seems fine 
 You should look inside princi for how it
 reads it. it must be that part that is crashing ?
- 
it seems fine 
 You should look inside princi for how it
 reads it. it must be that part that is crashing ?
- 
What is that + sign doing as parameter ? 
- 
@mrjj And if I write: system ("./princi 0 5 10 0 7 8 prueba_princi.bmp 0 0 +") 
 where 5,10,7 and 8 are wps.front,wps.back....
 it runs well...@AlvaroS 
 well you must debug it then.
 Try to qDebug inside princi what you read and compare that to what u read for
 system ("./princi 0 5 10 0 7 8 prueba_princi.bmp 0 0 +")Sadly We cannot guess why you crash from the code shown. Also you dump the arguments to qDebug before u 
 call start, just to see what u are sending also.and then take it from there. 
