Qt-interest Archive, October 2006
Qprocess?
Message 1 in thread
I'm currently running on Windows XP / Windows 2000 and using Qt 3.6.6.
I'm using a Qprocess to start a external program I have written and want
to run in the background and independent of the main program that
launched it.
With the following code the external program is apparently excited and
all the checks below come back fine but the program does NOT appear to
actually run until I exit out of the main program that started it.
QProcess *createprocess = new
QProcess(QString("myprogram input.file.path.name"));
if ( !createprocess->start() )
{
qDebug("Unable to start process!");
}
if ( createprocess->isRunning() )
{
qDebug("Process is running");
}
Thanks,
------------------
Bill McGarry
william.d.mcgarry@xxxxxxxxxx
--
[ signature omitted ]
Message 2 in thread
Hi,
> With the following code the external program is apparently excited and
> all the checks below come back fine but the program does NOT appear to
> actually run until I exit out of the main program that started it.
How do you know the program does not actually run?
Do you expect some output from the program? Do you read that output?
--
[ signature omitted ]
Message 3 in thread
> How do you know the program does not actually run?
I bring up task manager and the task nevers shows up while the main
program is active.
> Do you expect some output from the program? Do you read that output?
There are several files created in a folder by the external program.
As soon as I exit out of the main program the external program shows up
in the task manager and the files it creates starts showing up in the
folder.
-----------------------------
Bill McGarry
william.d.mcgarry@xxxxxxxxxx
-----Original Message-----
From: Dimitri [mailto:dimitri@xxxxxxxxxxxxx]
Sent: Sunday, October 01, 2006 11:00 PM
To: qt-interest@xxxxxxxxxxxxx
Subject: Re: Qprocess?
Hi,
> With the following code the external program is apparently excited and
> all the checks below come back fine but the program does NOT appear to
> actually run until I exit out of the main program that started it.
How do you know the program does not actually run?
Do you expect some output from the program? Do you read that output?
--
[ signature omitted ]