Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-44900

Need a page that describes Qt's OOM policy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.4.1
    • Documentation
    • None

    Description

      Present documentation on QByteArray::resize (and QByteArray::reserve) doesn't say anything what will happen when resize request cannot be satisfied.
      At the moment std::bad_allocation is thrown, see sample program is on GitHub:
      svn co https://github.com/kocherovms/develorium.com/trunk/qbytearray_resize
      Taking into account that exceptions are not widely adopted in Qt this is somewhat surpisingly. Also there is no guarantee that this won't change in future versions of Qt.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            docteam Qt Documentation Team
            kocherovms Kocherov Michael
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes