Unsolved QPlainTextEdit and fork + exec occur memory lack.
-
Hi!
My OS is CentOS 7.
My qt version is 4.8.7.I don't speak english very well. understand me plz.
Now I'm going to develop and I have a question and ask you a question.- Does fork + exec have an effect on memory shortage?
- Print many strings to QPlainTextEdit under preconditions without limit of maximum block count; also periodically call clear().
Does this sequence affect memory shortages? - Does ENOMEM occur in the execution of fork + exec by method 2.
help me plz!!!
-
@kdkim said in QPlainTextEdit and fork + exec occur memory lack.:
Does fork + exec have an effect on memory shortage?
Well, it starts a new process which will consume RAM. How much depends on what this process is executing.
"Print many strings to QPlainTextEdit under preconditions without limit of maximum block count; also periodically call clear().
Does this sequence affect memory shortages?" - it all depends on how much stuff you put into your text edit before clearing it. Without more information not possible to answer."Does ENOMEM occur in the execution of fork + exec by method 2." - if you are out of RAM then yes. But how should we answer this question without knowing more?
Why are you asking this? Do you have any real issues with memory usage?