Run background process



  • 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.


  • Qt Champions 2016

    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. :(


  • Qt Champions 2016

    @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.


Log in to reply
 

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