Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. what error will come when content is too large to append in file ?
Forum Update on Monday, May 27th 2025

what error will come when content is too large to append in file ?

Scheduled Pinned Locked Moved Solved C++ Gurus
5 Posts 3 Posters 699 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by
    #1

    For example i am writing log in appending mode in file. this file stored 100 kb rom.
    when log size increase more than 100 kb.

    what will happen ? is it crash my application? is it stop to append the log ?

    jsulmJ J.HilkJ 2 Replies Last reply
    0
    • Q Qt embedded developer

      For example i am writing log in appending mode in file. this file stored 100 kb rom.
      when log size increase more than 100 kb.

      what will happen ? is it crash my application? is it stop to append the log ?

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #3

      @Qt-embedded-developer write will return -1 instead of the bytes written, and you than can check the error code/errorString


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      2
      • Q Qt embedded developer

        For example i am writing log in appending mode in file. this file stored 100 kb rom.
        when log size increase more than 100 kb.

        what will happen ? is it crash my application? is it stop to append the log ?

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

        @Qt-embedded-developer Why don't you just try?
        Probably: 5 I/O error

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

        1 Reply Last reply
        1
        • Q Qt embedded developer

          For example i am writing log in appending mode in file. this file stored 100 kb rom.
          when log size increase more than 100 kb.

          what will happen ? is it crash my application? is it stop to append the log ?

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #3

          @Qt-embedded-developer write will return -1 instead of the bytes written, and you than can check the error code/errorString


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          2
          • Q Offline
            Q Offline
            Qt embedded developer
            wrote on last edited by
            #4

            @Qt-embedded-developer said in what error will come when content is too large to append in file ?:

            is it crash my application?

            @J-Hilk @jsulm is it crash my application?

            jsulmJ 1 Reply Last reply
            0
            • Q Qt embedded developer

              @Qt-embedded-developer said in what error will come when content is too large to append in file ?:

              is it crash my application?

              @J-Hilk @jsulm is it crash my application?

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

              @Qt-embedded-developer Did you read what @J-Hilk wrote?
              But if you want to be 100% sure what happens on your hardware with your software then you HAVE to TEST.

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

              1 Reply Last reply
              0

              • Login

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