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. Run background process
Forum Updated to NodeBB v4.3 + New Features

Run background process

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 939 Views 2 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.
  • M Offline
    M Offline
    MartinD
    wrote on last edited by
    #1

    I want to launch a process (exe file) from Qt application on Windows. The process can be terminated due to "The program has performed an illegal operation and will be terminated" on some PCs because there is a bug in underlying framework we use but we can't fix the bug.

    Is it possible to run the process completely in silence without user seeing the "The program has performed .... " warning modal window or similar modal window?

    I just want to be notified when the process ends/dies and get its return code.

    kshegunovK 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome
      As far as i know, it is not possible to
      disable as its default windows behaviour.

      Running as service disable the popups but having stuff that crash as a service is
      also not a nice thought. :(

      1 Reply Last reply
      0
      • M MartinD

        I want to launch a process (exe file) from Qt application on Windows. The process can be terminated due to "The program has performed an illegal operation and will be terminated" on some PCs because there is a bug in underlying framework we use but we can't fix the bug.

        Is it possible to run the process completely in silence without user seeing the "The program has performed .... " warning modal window or similar modal window?

        I just want to be notified when the process ends/dies and get its return code.

        kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on last edited by
        #3

        @MartinD said in Run background process:

        Is it possible to run the process completely in silence without user seeing the "The program has performed .... " warning modal window or similar modal window?

        Have you tried running it a child process with the help of QProcess::start and by subscribing to the QProcess::finished signal. I don't know if you'd get the dialog (you shouldn't) but it's worth a try.

        Read and abide by the Qt Code of Conduct

        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