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 /x64What 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:
!http://imageshack.com/a/img716/8537/omm6.png(error popup)!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...
EDIT:
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.
C:\Windows\winsxs\amd64_microsoft-windows-gdi32_31bf3856ad364e35_6.1.7601.17514_none_b7a4af6b5ff115ac
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.