Results 1 to 2 of 2

Thread: QFileDialog causing crash "exited with code -1073741511" with 64-bit Qt

  1. #1
    Join Date
    Mar 2010
    Location
    Auckland, NZ
    Posts
    121
    Thanks
    9
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QFileDialog causing crash "exited with code -1073741511" with 64-bit Qt

    I have been working with the Qt SDK on Windows 7 64-bit, using the supplied 32-bit binaries. Now I need to use 64-bit code, so I built Qt from source with MSVS 10.0. As far as I could tell the build completed without error. I have been trying to transfer one of my programs to the 64-bit version. I am using cmake (for the first time with Qt Creator) because I need to link with ITK libraries. My test program fails immediately, in Qt Creator with error -1073741511, and outside Qt Creator with this message:

    The procedure entry point ??4QString@@QEAAAEAV0@$$QEAV0@@Z could not be located in the dynamic link library QtCore4.dll

    If I remove code references to QFileDialog::getOpenFileName and QFileDialog::getSaveFileName the program executes correctly. Note that these QFileDialog functions are not called, it is just their presence in the code that causes the crash.

    I notice that there are (32-bit) versions of QtCore4.dll in many places on my disk, but I assumed that the Qt Creator setup would ensure that the correct one was found. All suggestions are welcomed


    Added after 41 minutes:


    I now find that if I copy QtCore4.dll and QtGui4.dll to the execution directory the program executes correctly outside Qt Creator. So it's just a question of Qt Creator being able to find the 64-bit dlls. What's the best way to make this happen?
    Last edited by gib; 24th July 2013 at 18:33.

  2. #2
    Join Date
    Oct 2012
    Posts
    132
    Thanks
    10
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: QFileDialog causing crash "exited with code -1073741511" with 64-bit Qt

    Try to add the directory where your libraries are stored to the PATH variable in the build/execution environment.

Similar Threads

  1. error "cmd.exe" exited with code 1 in visual studio 2010
    By cactus0830 in forum Installation and Deployment
    Replies: 1
    Last Post: 22nd June 2013, 04:25
  2. Replies: 1
    Last Post: 21st March 2013, 22:34
  3. Replies: 4
    Last Post: 11th August 2011, 08:02
  4. Running example project with mingw gives "... exited with code -1073741792" error
    By sibercekirge in forum Installation and Deployment
    Replies: 8
    Last Post: 31st May 2011, 17:33
  5. Replies: 3
    Last Post: 2nd November 2010, 22:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.