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

QStringLiteral iniside a Plugin crashes after the plugin was unloaded

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes