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

QStringLiteral iniside a Plugin crashes after the plugin was unloaded

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.5.1
    • None
    • Windows (MSVC2013)

    Description

      I created a plugin. Inside that plugin there is a function that returnes a QString. Inside of my plugin implementation I created it using QStringLiteral. I store the returned string locally, but never modify it. Later in the program, the plugin gets unloaded, the QString however stays.
      As soon as I try to access the string after the plugin was unloaded, the program crashes. This only happens with QStringLiteral, QLatin1String and QString work fine.

      I'm sorry I can't provide any code right now, but my project is to complex for easily extract that part. But if neccessary, I guess I could manage something.

      Attachments

        Issue Links

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

          Activity

            People

              laknoll Lars Knoll
              SkyCoder Felix Barz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes