QComboBox always crashes in 64-bit release mode (Qt 4.7)

  • Hi guys,

    I am developing software under windows system using Visual studio 2010. I met a weird problem when I use qt 4.7.0 beta and release version (Qt is compiled by 64-bit VC compiler): If I pick an item from a QComboBox object, my program will crash automatically and the itemlist never show up before crash. However the problem does not appear in 64-bit Debug mode and my program works well also with 32/64-bit Qt 4.6.x and 32-bit Qt 4.7.0.

    Does anyone notice this problem ?

    Note that: Qt Demo has the same problem. (Qt is compiled by 64-bit VC compiler)



    Update: 3.21.2011, with Qt 4.7.2 + VC2010sp1 the above problem disappears.

  • Did you try to run the binary on another machine to see if it's not a local problem with your workstation?

    Also, I'd suggest you enable Dr. Watsion on windows to see where it crashes. That might give you a hint what is going wrong.


    If that's not the case, you could try to build Qt yourself from source.

    Hope that helps.

  • Would be good to see a very simple code, where you can reproduce your problem and we can test also. We can narrow down the problem.

  • I have a similar problem when running following program, i got a crash in the STL implementation of Microsoft. I filed a bug report there as well, as i do not know which one is responsible for the crash:

    #include <string>
    #include <QString>

    void foo(const QString& applicationName);
    const QString qApplicationName("My Application");
    std::string mApplicationName;

    int main( int argc, char* argv [])
    return 0;

    void foo(const QString& applicationName)
    mApplicationName = applicationName.toStdString();

    compiled with

    /I"$(QTDIR)/include/QtCore" /Zi /nologo /W3 /WX- /Od /Oy- /D "AMD64" /D "_WIN64" /D "USEACE" /D "ACE_AS_STATIC_LIBS" /D "CUDA_MAKEINCLUDE" /D "GLEW_STATIC" /D "BOOST_LIB_DIAGNOSTIC" /D "BOOST_ALL_NO_LIB" /D "BOOST_FILESYSTEM_VERSION=3" /D "BOOST_FILESYSTEM_NO_DEPRECATED" /D "_AMD64" /D "_DEBUG" /D "QT_NO_KEYWORDS" /D "NOMINMAX" /D "WIN32_LEAN_AND_MEAN" /D "VC_EXTRA_LEAN" /D "WIN32" /D "_WINDOWS" /D "_CRT_NONSTDC_NO_WARNINGS" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /D "_HAS_ITERATOR_DEBUGGING=0" /D "_SECURE_SCL=0" /D "_ATL_SECURE_NO_DEPRECATE" /D "_CRT_NON_CONFORMING_SWPRINTFS" /D "STRSAFE_NO_DEPRECATE" /D "ACPL_USE_PROMOTED_HEADERS" /D "ACPL_USE_WINDOWS_COM_OBJECTS" /D "_UNICODE" /D "UNICODE" /Gm- /EHsc /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /openmp /Fa"obj_v100\x64\Debug\Application\STL_Crash_Windows" /Fo"obj_v100\x64\Debug\Application\STL_Crash_Windows" /Fd"obj_v100\x64\Debug\Application\STL_Crash_Windows\vc100.pdb" /FR"obj_v100\x64\Debug\Application\STL_Crash_Windows" /Gd /wd"4290" /errorReport:queue

    linked with

    /OUT:"../bin\STL_Crash_Windows_x64_d.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"$(QTDIR)/lib.x64" /LTCG:STATUS "QtCored4.lib" "Winmm.lib" /MANIFEST /ManifestFile:"obj_v100\x64\Debug\Application\STL_Crash_Windows\STL_Crash_Windows_x64_d.exe.intermediate.manifest" /ALLOWISOLATION /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"STL_Crash_Windows_x64_d.pdb" /PGD:"STL_Crash_Windows_x64_d.pgd" /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /ERRORREPORT:QUEUE

  • hi chantivlad, can you enclose your code within @ tags, makes it more readable. Also can you post your problem in a new thread. Don't think this is related to the current thread ....

  • thanks @ chantivlad :)

Log in to reply

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