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. [QFileSystem::setRootPath] GCError Exception Win32 VS2008 Qt 4.7.1
Forum Updated to NodeBB v4.3 + New Features

[QFileSystem::setRootPath] GCError Exception Win32 VS2008 Qt 4.7.1

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 3.3k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    Matjioe
    wrote on last edited by
    #1

    Hi!

    I encounter an exception using QFileSystem::setRootPath (only under Win32, Qt 4.7.1 or Qt 4.7.2 , VC9 or VC10)


    10288 17:38:01.806 ShipAssertNoUI '.sl5' (0x2e736c35)
    10288 17:38:01.807 Throwing exception: Unspecified error (.sl5)
    Microsoft C++ exception: GCError at memory location 0x002fe268..

    Code sample is:

    @class LabWindowTest : public QMainWindow
    {
    public:
    LabWindowTest() {}
    ~LabWindowTest() {}

    bool Init() { m_testModel.setRootPath(QDir::currentPath()); return true; }

    QFileSystemModel m_testModel;
    };

    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);

    LabWindowTest window;
    if (window.Init() == false)
    { return 0; }
    window.show();

    return app.exec();
    }@

    And the stack:
    KernelBase.dll!763bc41f()
    [Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]
    KernelBase.dll!763bc41f()
    shlwapi.dll!7631ba13()
    shlwapi.dll!7631ba24()
    shell32.dll!764a359e()
    shell32.dll!7651bedb()
    shlwapi.dll!7631c514()

    msvcr90d.dll!_unlock(int locknum=4) Line 376 C
    msvcr90d.dll!_heap_alloc_dbg_impl(unsigned int nSize=174, int nBlockUse=1, const char * szFileName=0x00000000, int nLine=0, int * errno_tmp=0x002fed70) Line 500 + 0x7 bytes C++
    msvcr90d.dll!_heap_alloc_dbg_impl(unsigned int nSize=174, int nBlockUse=1, const char * szFileName=0x00000000, int nLine=0, int * errno_tmp=0x002fed70) Line 497 + 0xc bytes C++
    msvcr90d.dll!_nh_malloc_dbg_impl(unsigned int nSize=174, int nhFlag=0, int nBlockUse=1, const char * szFileName=0x00000000, int nLine=0, int * errno_tmp=0x002fed70) Line 239 + 0x19 bytes C++
    msvcr90d.dll!_nh_malloc_dbg(unsigned int nSize=174, int nhFlag=0, int nBlockUse=1, const char * szFileName=0x00000000, int nLine=0) Line 296 + 0x1d bytes C++
    msvcr90d.dll!malloc(unsigned int nSize=10762792) Line 56 + 0x15 bytes C++
    002fedbc()
    QtGuid4.dll!QFileIconProviderPrivate::getWinIcon(const QFileInfo & fileInfo={...}) Line 263 + 0x79 bytes C++
    QtGuid4.dll!QFileIconProvider::icon(const QFileInfo & info={...}) Line 420 + 0x10 bytes C++
    QtGuid4.dll!QFileInfoGatherer::getInfo(const QFileInfo & fileInfo={...}) Line 233 + 0x1d bytes C++
    QtGuid4.dll!QFileSystemModelPrivate::node(const QString & path={...}, bool fetch=true) Line 450 + 0x19 bytes C++
    QtGuid4.dll!QFileSystemModelPrivate::index(const QString & path={...}) Line 233 + 0x1e bytes C++
    QtGuid4.dll!QFileSystemModel::setRootPath(const QString & newPath={...}) Line 1416 + 0x36 bytes C++
    TestQFileSystem.exe!LabWindowTest::Init() Line 15 + 0x4e bytes C++
    TestQFileSystem.exe!main(int argc=1, char * * argv=0x00606d80) Line 27 + 0x8 bytes C++
    TestQFileSystem.exe!__tmainCRTStartup() Line 582 + 0x19 bytes C
    TestQFileSystem.exe!mainCRTStartup() Line 399 C
    kernel32.dll!754533aa()
    ntdll.dll!77509ef2()
    ntdll.dll!77509ec5()

    Thanks for any help around this!
    Mat

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Matjioe
      wrote on last edited by
      #2

      Anyone tried it?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mwqt
        wrote on last edited by
        #3

        I have the same, but with Qt 4.8.4, MSVC2010. Have you found a solution yet?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Matjioe
          wrote on last edited by
          #4

          Nope! Sorry. Any Qt guy to test it?

          1 Reply Last reply
          0
          • G Offline
            G Offline
            GoldenAxe
            wrote on last edited by
            #5

            I have the same, but with Qt 4.8.4 (64bit) and MinGW, nevertheless my project run's flawless.

            1 Reply Last reply
            0
            • EscainE Offline
              EscainE Offline
              Escain
              wrote on last edited by
              #6

              I am experiencing this issue with QT 5.6 over Windows7. Could be related to a Symantec "anti"-virus?
              VisualStudio 2015.

              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