Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt on BlackBerry and QNX
  4. Running new process from my GUI
Forum Updated to NodeBB v4.3 + New Features

Running new process from my GUI

Scheduled Pinned Locked Moved Unsolved Qt on BlackBerry and QNX
4 Posts 2 Posters 2.5k Views 3 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.
  • A Offline
    A Offline
    Alan B
    wrote on 12 Jun 2017, 11:50 last edited by
    #1

    Each time my GUI process fires up I want to slay and restart a few server processes which handle the interface with hardware devices (serial & ethernet).

    I used the QProcess::startDetached() function which starts the process OK but when I try to communicate with the new process using MsgSend() the call just gets blocked and never returns. If I start the processes at bootup or via Momentics, it works fine.

    Any ideas ?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 12 Jun 2017, 22:13 last edited by
      #2

      Hi,

      Please add the Qt version you are using, the OS and its version etc.

      startDetached creates a new independent process, is that really what you want ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply 13 Jun 2017, 08:10
      1
      • S SGaist
        12 Jun 2017, 22:13

        Hi,

        Please add the Qt version you are using, the OS and its version etc.

        startDetached creates a new independent process, is that really what you want ?

        A Offline
        A Offline
        Alan B
        wrote on 13 Jun 2017, 08:10 last edited by
        #3

        @SGaist I managed to solve the first problem. My server code had a call to name_open() after name_attach() as if it was trying to connect to itself !? Removing this has solved the issue.

        Next question - can I use the same QProcess object to start more than one process ?

        i.e.

        QProcess proc;

        proc.start("/tmp/bin/foo");
        proc.start("/tmp/bin/bar");

        This code only seems to start 'foo'

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 13 Jun 2017, 20:24 last edited by
          #4

          AFAIK, it's one process at a time though you can re-use the object itself once one is finished.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2

          1/4

          12 Jun 2017, 11:50

          • Login

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