Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QPlainTextEdit and fork + exec occur memory lack.
Forum Updated to NodeBB v4.3 + New Features

QPlainTextEdit and fork + exec occur memory lack.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 174 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kdkim
    wrote on last edited by
    #1

    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.

    1. Does fork + exec have an effect on memory shortage?
    2. Print many strings to QPlainTextEdit under preconditions without limit of maximum block count; also periodically call clear().
      Does this sequence affect memory shortages?
    3. Does ENOMEM occur in the execution of fork + exec by method 2.

    help me plz!!!

    jsulmJ 1 Reply Last reply
    0
    • K kdkim

      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.

      1. Does fork + exec have an effect on memory shortage?
      2. Print many strings to QPlainTextEdit under preconditions without limit of maximum block count; also periodically call clear().
        Does this sequence affect memory shortages?
      3. Does ENOMEM occur in the execution of fork + exec by method 2.

      help me plz!!!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved