A couple of days ago I got myself a new laptop with Win7 x64, and installed VS2008 on it. (I only have the 32 bit version so i installed that).
Now, when I compile the program, all goes well up to the point where the program shows up with the console... and .. stops. There's no crash, no 'program has stopped responding' nothing. It just sits there with a blank console, consuming no CPU (as far as I can tell in observing it for 2 minutes), allocating no more memory, sitting at 9mb of RAM used.
I don't have any code that might cause this, but even worse, it never seems to enter the code! This is what I reduced the main.cpp to (before it just included the commented out stuff), and it behaves exactly as described above:
//#include "Game.h"
//#include "stdlib.h"
#include <iostream>
int main(int argc, char* argv[])
{
std::cout << "MAIN IS ON!\n";
// Create a Game object
// Game *pGame = new Game();
// // start the Game
// int error = pGame->Start();
// if ( error != 0)
// {
// std::cout << "Game could not start...\n";
// system("pause");
// }
//return error;
}
I add a breakpoint to the cout, it never reaches it (which should've been obvious because the console remains blank).
The exact same thing happens with a build from my XP machine when i copy it over to my Win7 machine. So you might be thinking, project configs are wrong or something right?
Well, I copied the exact same build from my xp machine to a friend's Win7 that's also 64 bit, and it ran! Just fine! No problems what so ever!
I've also send this out to a few people to test it... it works on a Vista x86 machine, another Win7 x64 machine, but it doesn't work on one other Win7 machine.
I am at a loss here. There's gotta be something wrong with my pc... or my settings... I really don't know!
This is the last few lines from the output from the program starting. After that last line, it stops, no more output, nothing.
'Terrain Generator.exe': Loaded 'C:\Windows\SysWOW64\atiadlxy.dll'
'Terrain Generator.exe': Loaded 'C:\Windows\SysWOW64\wtsapi32.dll'
'Terrain Generator.exe': Loaded 'C:\Windows\SysWOW64\psapi.dll'
'Terrain Generator.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll'
'Terrain Generator.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll'
'Terrain Generator.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll']I also use 11 dlls that sit in the program's folder (glew, zlib, ftgl, etc.) - but they all get loaded before this point is reached, so it doesn't hang on one of them.
If anyone can offer some advice on what could be causing this, I'd greatly appreciate it.
Thanks in advance.