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

QtConcurrent::run() doesn't handle QtConcurrent::Exception(s)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.0
    • 4.7.0
    • Core: QtConcurrent
    • None
    • 98d51e42c81c0674bc724eccbdf8521d9317998a

    Description

      When exception is thrown from QtConcurrent::run(), the following warning is displayed:

      "Qt Concurrent has caught an exception thrown from a worker thread.
      This is not supported, exceptions thrown in worker threads must be
      caught before control returns to Qt Concurrent."

      The exceptions could be handled in the same way as in the other QtConcurrent functions such as QtConcurrent::map.

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            mpejcoch Martin Pejcoch (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes