Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Heap error, misconfiguration for x64?
Qt 6.11 is out! See what's new in the release blog

Heap error, misconfiguration for x64?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 1 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    postb99
    wrote on last edited by
    #1

    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:
    !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)!

    1 Reply Last reply
    0
    • P Offline
      P Offline
      postb99
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        postb99
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved