Results 1 to 9 of 9

Thread: program exits straight away - exited with code -107374151

  1. #1
    Join Date
    Dec 2009
    Location
    New Zealand
    Posts
    54
    Thanks
    23
    Qt products
    Qt4
    Platforms
    Windows

    Default program exits straight away - exited with code -107374151

    Hi,

    When I run my program, it starts and then quickly exits with the following message: exited with code -107374151

    I have recently upgraded from "qt-sdk-win-opensource-2009.04" to "qt-sdk-win-opensource-2010.01.exe".

    My program used to work fine on the old Qt Creator, but not anymore.

    I'm not sure if it is a configuration setting in Qt creator that I need to change or what..

    Is there a way to determine what the error code -107374151 means?


    Thanks

  2. #2
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: program exits straight away - exited with code -107374151

    you are probably missing a dll - try running from the command line which would tell you the name of the missing dll.

  3. #3
    Join Date
    Dec 2009
    Location
    New Zealand
    Posts
    54
    Thanks
    23
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: program exits straight away - exited with code -107374151

    I don't want to sound like a complete moron, but how do I run from the command line in Qt creator?


    The following is the output of my build steps
    Qt Code:
    1. Running build steps for project LoaderV5...
    2. Starting: c:/qt/2010.01/qt/bin/qmake.exe C:/Documents and Settings/Owner/Desktop/Loader Program/PROTOTYPE/LoaderV5.pro -spec win32-g++ -r
    3. Exited with code 0.
    4. Starting: C:/Qt/2010.01/mingw/bin/mingw32-make.exe -w
    5. mingw32-make: Entering directory `C:/Documents and Settings/Owner/Desktop/Loader Program/PROTOTYPE'
    6. C:/Qt/2010.01/mingw/bin/mingw32-make -f Makefile.Debug
    7. mingw32-make[1]: Entering directory `C:/Documents and Settings/Owner/Desktop/Loader Program/PROTOTYPE'
    8. mingw32-make[1]: Nothing to be done for `first'.
    9. mingw32-make[1]: Leaving directory `C:/Documents and Settings/Owner/Desktop/Loader Program/PROTOTYPE'
    10. mingw32-make: Leaving directory `C:/Documents and Settings/Owner/Desktop/Loader Program/PROTOTYPE'
    11. Exited with code 0.
    To copy to clipboard, switch view to plain text mode 

  4. #4
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: program exits straight away - exited with code -107374151

    sorry, should have been clearer...
    instead of running it from inside Qt Creator, open a Qt Command Prompt, then cd to the app's executable and run it from there.

  5. The following user says thank you to schnitzel for this useful post:

    Ferric (27th January 2010)

  6. #5
    Join Date
    Dec 2009
    Location
    New Zealand
    Posts
    54
    Thanks
    23
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: program exits straight away - exited with code -107374151

    yes there were five missing dll's, I copied them into the debug folder, and the error messages dissappeared, but then I got the following error message (please see attached)


    Also, thanks for letting me know about using the command line, it looks like a pretty handy feature
    Attached Images Attached Images

  7. #6
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: program exits straight away - exited with code -107374151

    hmm try doing a clean build of everything since you installed a new Qt sdk. If that doesn't help download the program 'depends' and run it on your executable.

  8. #7
    Join Date
    Dec 2009
    Location
    New Zealand
    Posts
    54
    Thanks
    23
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: program exits straight away - exited with code -107374151

    I downloaded the program "depends" but the information if provided me with was a little over my head. I think I may revert to a previous version and a previous copy of my program, taking it one step at a time. Thanks for the help.

  9. #8
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: program exits straight away - exited with code -107374151

    don't give up yet

    have you read the following:
    http://doc.qt.nokia.com/4.6/deployme...n-dependencies

    I suppose you have all or most of these in the folder where your executable is.

  10. #9
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: program exits straight away - exited with code -107374151

    The suggestion to do a full clean and rebuild would be a good start.

    You should not need to move any Qt-supplied DLL files in order to run your application in Qt Creator. Libraries from external packages may be copied in or placed on the PATH (globally or in the Run Configuration). Check also the the Run Configuration is default or, if it isn't, that the changes you made are good.

Similar Threads

  1. exited with code -1073741511
    By john_god in forum Installation and Deployment
    Replies: 23
    Last Post: 13th June 2011, 15:18
  2. execute sth before program exits (user closes window)
    By donglebob in forum Qt Programming
    Replies: 6
    Last Post: 9th December 2008, 23:24
  3. A Dialog that cannot be exited
    By VireX in forum Newbie
    Replies: 4
    Last Post: 26th March 2007, 10:45
  4. program exits
    By ldsjohn in forum Qt Programming
    Replies: 2
    Last Post: 20th September 2006, 19:03
  5. QStringList straight to file
    By freak in forum Newbie
    Replies: 2
    Last Post: 13th June 2006, 22:38

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.