Hi there !
I need to launch an application from within my application. Since I also need to be informed, when the child process exits (ie crashes etc.) I want to use the KProcess class.
It works perfectly as long as I am not starting it in debugging mode from within KDevelop. When I want to debug my application, then it just won't start the child process. I have found some statements on the internet, saying, that this is a known Problem, but I haven't found a solution to it yet.
You can try it very simply in your own application. Just add the following lines somewhere in your code (plus
#include <kprocess.h> of course). When you start your application from commandline it launches kwrite. In debugging mode it won't.
KProcess procTest;
procTest << "kwrite";
procTest.start(KProcess::DontCare);
I would appreciate some tips how to avoid this problem, since I really need to debug my code :-)
SmartyHias