PDA

View Full Version : QProcess failed invoke emulator correctly



boyInBox
23rd June 2011, 07:34
Hi All,

I need some help with QProcess.

I have created a mobile application which runs fine with Qt simulator when invoked through QtCreator. For some testing purpose I need to run this application executable (created for simulator target) through another Qt Desktop application. To do so, I have created a batch file which, sets the required Qt environment and executes the binary. This batch file works fine when invoked from command prompt.

Now, from my desktop application when I invoke this batch file using QProcess it exits with code QProcess::Crashed. And the regular windows error message is poped which says "XXX.exe has encountered a problem and needs to close...."

Please let me know if you have any inputs on resolving this.
Thanks in advance.

Rachol
23rd June 2011, 09:27
Could you show us how you are starting the process? Have you tried startDetached(..) ?