Program wont start - Wont even enter main()
My current program, being compiled using Qt Creator, wont start. It wont even enter main(). I'm using Windows 7, 32 bit. The program doesn't use the QT API.
Regardless of whether I run it as admin, or run it from inside QtCreator or manually running the executable... it will not run.
Compiles fine. Build proccess looks good. Executable generated, game icon visible on executable. Wont run. Whether I'm compiling in debug or release, it wont do a thing.
When running, Qt goes through the basic steps ("Setting breakpoints...", "Loading someDllOrAnother...", "Application started."). After application started, nothing happens. QtCreator is fine, it doesn't freeze up or anything, but the program doesn't run. I have to manually kill the process (yes, it shows up as a proccess in Windows), or abort it in QT ("The gdb proccess exitted unexpectedly (crashed).")
Compile output:
Code:
Running build steps for project GameClient...
Configuration unchanged, skipping qmake step.
Starting: "C:/Qt/2010.05/mingw/bin/mingw32-make.exe" -w
mingw32-make: Entering directory `D:/Desktop PC/Jacob/Projects/AdventureFar/GameClient/[Game]/Code/GameClient-build-desktop'
C:/Qt/2010.05/mingw/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory `D:/Desktop PC/Jacob/Projects/AdventureFar/GameClient/[Game]/Code/GameClient-build-desktop'
mingw32-make[1]: Nothing to be done for `first'.
mingw32-make[1]: Leaving directory `D:/Desktop PC/Jacob/Projects/AdventureFar/GameClient/[Game]/Code/GameClient-build-desktop'
mingw32-make: Leaving directory `D:/Desktop PC/Jacob/Projects/AdventureFar/GameClient/[Game]/Code/GameClient-build-desktop'
The process "C:/Qt/2010.05/mingw/bin/mingw32-make.exe" exited normally.
My guess is it isn't QT, but that somehow Windows has a problem with it, or maybe Norton Antivirus - but I disabled Norton and still it wont run. Any ideas how I can go about isolating the problem? Any ideas of what it might be?
Re: Program wont start - Wont even enter main()
What happens if you run the application from the command line?
Re: Program wont start - Wont even enter main()
Nothing. I even did so running the command line as administrator. It doesn't freeze the console, the console just continues past - as if the program ran and gave no output... but it should at the very least spit out the contents of a std::cout << "Test" << std::endl; line.
Everything I see makes me think the executable itself is fine, but somehow Norton or Windows is blocking it. For example, when I run it, it shows up in the Processes Window (Ctrl+Shift+Esc in Windows 7). It just stays there - if execution ever reached the program, it should exit very very quickly. If execution reached the program and somehow got stuck in an infinite loop, the command line (and QT) would freeze up until the program exitted. That doesn't happen.
Re: Program wont start - Wont even enter main()
Please show us your main().
Re: Program wont start - Wont even enter main()
Quote:
Originally Posted by
ComServant
Nothing. I even did so running the command line as administrator. It doesn't freeze the console, the console just continues past - as if the program ran and gave no output... but it should at the very least spit out the contents of a std::cout << "Test" << std::endl; line.
If it's build through Creator, you should add "CONFIG += console" to your .pro file, otherwise no input / output will work. Also, it may show something to put a breakpoint at beginning of main() and debug the application.
Re: Program wont start - Wont even enter main()
Figured out the problem (but haven't yet solved it). It's unrelated to QT, but is somehow connected to a 3rd party API I'm using. Now that I've isolated the problem, I'll go about fixing it by studying it further.
Thanks for all the fish and help! I really do apreciate it.