Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QProcess freezen
Forum Updated to NodeBB v4.3 + New Features

QProcess freezen

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tom_as
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • B Offline
      B Offline
      broadpeak
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved