Important: Please read the Qt Code of Conduct -

Heap error, misconfiguration for x64?

  • Hello,

    I use Qt4.8.5 64 bit on a Windows 7 64 bit machine, have the following VS 2010 compiler set up in the kit (only VS 2010 and SDK 7.1 on this machine):
    C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\SetEnv.cmd /x64

    What did I do wrong to get x86/x64 related problem? I see that my Qt console app .exe depends on x86 compiler?

    The program runs correctly with console output but throws this error.

    Error popup:
    ! popup)!

    Dependency Walker for my program:
    depends on some x64 dll I include, this is ok:
    ! walker for my program)!

    Depends on x86 msvc??? This is strange:
    ! on x86 dlls)!

    Thank you for any pointers...


    First, I checked path, it's OK. Second, here is what dependency walker tells about foundation.dll I import in my project: it's 64 bit compiled but depends on gdi32.dll, with "x86" in red, so I guess I have to install something?

    ! x86 dependency)!

  • OK, I have gdi32.dll in this location, which is outside path, and a bit strange. I will investigate further on this.


    Edit: after investigation it's OK, dll is in Windows "side by side storage". So I think I have nothing wrong so far.

  • When running my program compiled in release mode, no error. Only when compiled in debug mode.

    I was given the advice of running build commands (see "Projects" tab of Qt Creator) in a VS prompt so that I detect environment misconfiguration. So I will try this.

Log in to reply