Qt3 qprocess, executable exited?
hi,
im using qt3 ryt now, im trying to call an executable file using qprocess
the executable is a movie player but the movie is on the other computers database so it uses socket..
Code:
proc->addargument("-i");
..//and many more addarguments cause it is required by the executable
proc->start();
the executable shows but closes immediately after starting..
if i run the application with the arguments manually, it shows and does not close immediately..
Now what could be the problem?
the executable?
the arguments? cause some of the arguments are path like bin/directory/ i did not change the / to // or to \
my code?
if i run the executable manually it goes like this:
./myplayer -i 100.000.0.1 -p 4000 -k ./bin/directory/ -t 5
in my codes it goes like this:
Code:
QProcess *proc
= new QProcess("./myplayer");
//i just put the ./myplayer to fast understanding proc->addargument("-i");//ip
proc->addargument("100.000.0.1");
proc->addargument("-p");//port
proc->addargument("4000");
proc->addargument("-k");//directory
proc->addargument("./bin/directory/");
proc->addargument("-t");//socket timeout
proc->addargument("5");
proc->start();
how to solve this?
Re: Qt3 qprocess, executable exited?
Where is "myplayer"? What is current working directory?
PS. Use QDir::current() or currentPath() to check CWD.
Re: Qt3 qprocess, executable exited?
the answer is.. the error is on the executable..
i found now the error the application is requiring a .ttf font config it should be place beside the application.. i overlook it..
thanks anyways..