Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Exception thrown for QStringList & QList.

Exception thrown for QStringList & QList.

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.3k 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.
  • K Offline
    K Offline
    KurtY.
    wrote on last edited by
    #1

    http://i60.tinypic.com/8y9b39.png

    I keep getting this no matter the list format I try to put the data from the .zip file in. I am at a loss as to stop this exception from firing. Oh this exception only happens in Debug, in release everything is fine.

    @QuaZip QOverrideZ(pState->vecDORs[0].qsOverrideLocation);
    if(QOverrideZ.open(QuaZip::mdUnzip)) // Attempt to open it
    {
    QStringList QOverideList = QOverrideZ.getFileNameList();
    if(QOverideList.size() > 0) // Make sure files are in the zip.
    {
    //Parse
    QString stest;
    if(QOverrideZ.setCurrentFile("test.xml"))
    {
    QuaZipFile QZFile(&QOverrideZ);
    if(QZFile.open(QIODevice::ReadOnly))
    {
    stest = QZFile.getFileName();
    QZFile.close();
    }
    w->WriteToDebugBox(QString::QString(stest), false, w->TEXTColor::tRed);
    }
    for(int i = 0; i < QOverideList.size(); ++i)
    {

                        }
                    }
                    else
                        w->WriteToDebugBox(QString::QString("... No files inside of Zip."), false, w->TEXTColor::tRed);
                    //QOverideList->clear();
                    QOverrideZ.close();@
    
    1 Reply Last reply
    0
    • K Offline
      K Offline
      KurtY.
      wrote on last edited by
      #2

      http://stackoverflow.com/questions/12356684/qstringlist-of-quazipgetfilenamelist-casts-error-by-destruction

      Actually just found this, it looks to be that I am having a debug / release dll issue. Does anyone know how to make it so I don't need to switch between the release and debug .dll manually everytime?

      1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        Hi,

        Your best bet is to ask the QuaZIP authors how they do it. It's not a Qt issue, per se.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        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