bibhukalyana
8th November 2013, 11:02
Hello all,
I am using QProcess class in my application to start external processes and get the reply. Recently I am observing a peculiar case in which when the memory consumption by my application exceeds a particular limit QProcess fails to start throwing the error
QProcess::FailedToStart
But if the same process is started outside application (from command line) when the application is running with full memory usage, it starts and executes successfully.
So what I concluded is that QProcess does some memory/resource check when the function
QProcess::start(..) is called.
Is there anyway I can make QProcess skip this step?
Or if not, then is there any alternative to QProcess for the above mentioned task? Start an external process from inside my application, keep a track of it's status and keep getting all the data sent by the process?
-Thanks,
bibhu
I am using QProcess class in my application to start external processes and get the reply. Recently I am observing a peculiar case in which when the memory consumption by my application exceeds a particular limit QProcess fails to start throwing the error
QProcess::FailedToStart
But if the same process is started outside application (from command line) when the application is running with full memory usage, it starts and executes successfully.
So what I concluded is that QProcess does some memory/resource check when the function
QProcess::start(..) is called.
Is there anyway I can make QProcess skip this step?
Or if not, then is there any alternative to QProcess for the above mentioned task? Start an external process from inside my application, keep a track of it's status and keep getting all the data sent by the process?
-Thanks,
bibhu