Details
-
Suggestion
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
4.8.5
-
None
Description
Hi!
I am starting a console tool with QProcess. The tool will push data into stdout until it gets blocked. This works well on commandline and a command pipe, there the output is send to another tools
If i want to use the tool in my qt application, i start it with QProcess and wait for readyReadStdOut.
But the tool generates data much faster than i can handle it and memory for my processes increases until no more memory is left. It seems to me that the QProcess seems to buffer all output from the tool internally and does not block.
I tried to start the tool with QProcess::Unbuffered, but this does not change anything. I also can not set the readBufferSize!.
Attachments
Issue Links
- duplicates
-
QTBUG-710 Add function QProcess::setReadBufferSize ()
-
- Open
-