Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Access violation on delete qApp [Win32 - QT 4.7.1]

    General and Desktop
    2
    3
    1811
    Loading More Posts
    • 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.
    • D
      DusanDusan last edited by

      Hi all, I use QWinMigrate in MFC app, but as I do not own sources, I am using QT as pluggin.
      Unfortunatley, in DllMain, when I call delete qApp raises exception. This behaviour started when I included OpenGL to try to use some OpenGL dialogs. If I use only standard dialogs without OpenGL, all works fine and delete succeeds without errors.
      All looks like trying to dereference NULL on Cleanup, so prehaps this is just a BUG?
      Host application is CAD MictoStation V8i SS1, it uses DirectX as 3d engine.

      This is message in Output of debugger:
      First-chance exception at 0x13e23572 (QtGuid4.dll) in ustation.exe: 0xC0000005: Access violation reading location 0x0000000c.

      Following is Stack Trace:
      @> QtGuid4.dll!QThreadStorage<QFontCache *>::deleteData(void * x=0x14cc2438) Line 133 + 0x22 bytes C++
      QtCored4.dll!QThreadStorageData::set(void * p=0x00000000) Line 148 + 0x7 bytes C++
      QtGuid4.dll!qThreadStorage_setLocalData<QFontCache>(QThreadStorageData & d={...}, QFontCache * * t=0x0028e244) Line 92 + 0x12 bytes C++
      QtGuid4.dll!QThreadStorage<QFontCache *>::setLocalData(QFontCache * t=0x00000000) Line 148 + 0x14 bytes C++
      QtGuid4.dll!QFontCache::cleanup() Line 2633 C++
      QtGuid4.dll!QFont::cleanup() Line 122 C++
      QtGuid4.dll!qt_cleanup() Line 907 C++
      QtGuid4.dll!QApplication::~QApplication() Line 1165 C++
      @

      As you can see, QFontCache is the source of the problem.

      Can somebody please suggest what to try?
      What could it be caused by?

      Thanks, Dusan

      1 Reply Last reply Reply Quote 0
      • R
        reureu last edited by

        Hi DusanDusan,

        Did you ever get a reply about this issue?
        I'm currently facing a very similar issue (with Qt 5.3.1)-- and I would be quite happy to hear about a solution.

        Kind regards,
        Reureu

        1 Reply Last reply Reply Quote 0
        • R
          reureu last edited by

          Hi DusanDusan,

          Did you ever get a reply about this issue?
          I'm currently facing a very similar issue (with Qt 5.3.1)-- and I would be quite happy to hear about a solution.

          Kind regards,
          Reureu

          1 Reply Last reply Reply Quote 0
          • First post
            Last post