draftomatic
03-18-2009, 09:27 AM
So I have a program in OpenGL that works on several computers, but when I try to compile it (or run the exe) on one of my desktops I get an access violation exception and VC++ breaks at this line, which lives inside my main loop in WinMain:
if (GetAsyncKeyState(VK_ESCAPE))
shutdown();
If I comment these lines (which are relatively unimportant), an access violation occurs at the very next line. If I comment that line, it crashes on the next, etc etc.
This is particularly troubling because it works fine on another desktop which has the same processor and GPU (AMD Phenom 9950 and ATI Radeon 4850). I've also tried several other OpenGL programs, including a few using GLUT to handle the Windows interfacing, and they all crash. Copying the compiled exe also causes runtime access violation.
My drivers are up-to-date. Running Vista 64bit Ultimate. The program works on another PC with Vista 64bit Home and one with XP 32bit.
Anyone have an idea what could be causing this? I can give more details if needed.
if (GetAsyncKeyState(VK_ESCAPE))
shutdown();
If I comment these lines (which are relatively unimportant), an access violation occurs at the very next line. If I comment that line, it crashes on the next, etc etc.
This is particularly troubling because it works fine on another desktop which has the same processor and GPU (AMD Phenom 9950 and ATI Radeon 4850). I've also tried several other OpenGL programs, including a few using GLUT to handle the Windows interfacing, and they all crash. Copying the compiled exe also causes runtime access violation.
My drivers are up-to-date. Running Vista 64bit Ultimate. The program works on another PC with Vista 64bit Home and one with XP 32bit.
Anyone have an idea what could be causing this? I can give more details if needed.