<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'>Hi,<br><br>Nasa schrieb:<br>&gt; Nasa schrieb:<br>&gt;&gt; I have looked extensively at MythMovies (closest thing to what I am<br>&gt;&gt; doing).....<br>&gt;&gt;&gt;I think you missed this one from moviesui.cpp:<br>&gt;&gt;&gt;if (!proc.waitForStarted())<br>&gt; <br>&gt;&gt;&gt;Just as I said, you have to wait for the started signal!<br>&gt; <br>&gt; <br>&gt; Didn't miss that -- it's used to ensure a process is started, not to see<br>&gt; if it still running.<br>&gt; <br>In your code example, this is missing. So do you actually have a<br>waitForStarted or not? It's vital, because proc.start() will immediately<br>return and your proc.state() compare will fail because at that moment<br>the process is NOT YET running. In fact in this moment it is most likely<br>in QProcess::Starting state!<br><br>&gt; WaitforFinish is the function to block until the process has stopped --<br>&gt; and no, it doesn't work either...<br>&gt;What do you mean with "doesn't work either". Do you try to compare<br>&gt;proc.state() with QProcess::Running AFTER proc.waitForFinish()??? That<br>&gt;would be perfectly ok, because when waitForFinish returns the process<br>&gt;actually already HAS finished and therefore NOT running anymore. It<br>&gt;would be QProcess::NotRunning in this case!<br><br>No, I mean it doesn't work if I use the WaitForFinish function instead of the state check.<br>ie: instead of the while loop, just use the WaitForFinish(some time) function.<br><br>Greetings<br>-Sascha-<br>_______________________________________________<br>mythtv-users mailing list<br>mythtv-users@mythtv.org<br>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users<br></div></body></html>