Okay, so maybe I need to wait untill I receive the finished signal before I can start up a new process.
Yes, I'm using Windows XP and I do receive a segmentation fault message. The output of your code in the command prompt (the terminal in Windows) before the segfault message comes is
I don't get the same QSocketNotifier message as you do, though. I still only get to see Qt files containing a lot of assembly code when backtracing.Process is starting up...
Process is now running.
Process is finished running.
Process is starting up...
Process is now running.
received finished signal
However, if I move the line containing start_process(); from the slot receiving the stateChanged signal to the slot receiving the finished signal, the program runs as expected. I think I will just stick to the QTimer::singleShot() workaround in my case, though. Anyway, thank you very much!
Bookmarks