Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Heap error, misconfiguration for x64?
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.
Dependency Walker for my program:
depends on some x64 dll I include, this is ok:
!http://imageshack.com/a/img594/464/6l4p.png(dependency walker for my program)!
Depends on x86 msvc??? This is strange:
!http://imageshack.com/a/img834/3968/05rh.png(depends 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?
!http://www.osames.org/pix/upload/original/1391421067.png(gdi32.dll 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.