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
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest