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



  • 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



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.