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. Access violation on delete qApp [Win32 - QT 4.7.1]

Access violation on delete qApp [Win32 - QT 4.7.1]

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

    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
    0
    • R Offline
      R Offline
      reureu
      wrote on last edited by
      #2

      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
      0
      • R Offline
        R Offline
        reureu
        wrote on last edited by
        #3

        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
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved