Nuno Santos
2015-05-19 14:29:04 UTC
Hi,
Iâm calling the function below with a one second interval while my app is open. The functions executes the command âadb devices"
Is there any kind of limitation by the system by the number of calls? I think my system gets to a point where no more processes can be created: Chrome starts to hang, QtCreator isnât able to do make, etc
static QString executeAdbCommand(QStringList arguments)
{
QProcess p;
//p.setReadChannel(QProcess::StandardError);
#ifdef Q_OS_MAC
p.start(QString("%1/adb").arg(QCoreApplication::applicationDirPath()), arguments);
#endif
#ifdef Q_OS_WIN
p.start("adb.exe", arguments);
#endif
//qDebug() << "Executing adb" << arguments;
if (!p.waitForStarted())
return "";
if (!p.waitForFinished())
return "";
QString output = p.readAll();
return output;
}
Nuno
Iâm calling the function below with a one second interval while my app is open. The functions executes the command âadb devices"
Is there any kind of limitation by the system by the number of calls? I think my system gets to a point where no more processes can be created: Chrome starts to hang, QtCreator isnât able to do make, etc
static QString executeAdbCommand(QStringList arguments)
{
QProcess p;
//p.setReadChannel(QProcess::StandardError);
#ifdef Q_OS_MAC
p.start(QString("%1/adb").arg(QCoreApplication::applicationDirPath()), arguments);
#endif
#ifdef Q_OS_WIN
p.start("adb.exe", arguments);
#endif
//qDebug() << "Executing adb" << arguments;
if (!p.waitForStarted())
return "";
if (!p.waitForFinished())
return "";
QString output = p.readAll();
return output;
}
Nuno