QProcess freezen

  • Hi,

    I work in Qt program to control running processes. Unfortunately this kind of process program freezes.

    @p_control_stunnel = new QProcess (this);
    p_control_stunnel->execute("cmd", QStringList() << "tasklist | find  \"stunnel.exe\"");@

    I also tried this:

    @p_control_stunnel = new QProcess (this);
    p_control_stunnel->start("tasklist /v /fo csv | find  \"stunnel.exe\" ");@

    Unfortunately, as soon as the program runs the entire freezes. debugger did not help.

    Please help

  • The problem is the pipe!
    Instead, you have to run tasklist as one process and pass the resulting data to another process running the find stunnel.exe.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.