Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: OpenGL Creating Window

  1. #1
    Newbie Newbie
    Join Date
    Jul 2013

    OpenGL Creating Window


    I have been having a problem recently running my OpenGL project, whenever I ran my project my entire OS would freeze and I would be forced to restart my computer. I found that the source of the problem was the glutCreateWindow(); function, so I tried exchanging the OpenGL utility to GLFW, but that gave the same problem, so I believe it must be a problem with my hardware/drivers. I even tried making a sample application to make sure my code was not the issue.

    Code :
    #include <Windows.h>
    #include <iostream>
    #include <gl/glut.h>
    #include <time.h>
    void display()
    void reshape(int w, int h)
    int main(int argc, char** argv)
    #ifdef RELEASE
    	int x = 1000;
    	int y = 600;
    	glutInit(&argc, argv);
    	glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH);
    	glutInitWindowPosition(50, 100);
    	std::cout << "OpenGL Version: " << glGetString(GL_VERSION) << std::endl;
    	std::cout << std::endl;
    	std::cout << "#######################" << std::endl;
    	std::cout << std::endl;
    	return 0;

    As I said the program would cause my OS to hang at 'glutCreateWindow("Test");'

    I can only think it would be a driver problem, as I recently updated my driver and that was when the problems started occurring. My spec is:

    Intel i5 750
    4GB RAM
    Nvidia Geforce 465 GTX
    Windows 7 64-bit

    Does anyone know the source of the problem?
    Last edited by killermud; 07-14-2013 at 10:21 AM.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Hmm, strange. I agree it sounds like a driver problem. You could try installing a different (possibly older) driver version; perform a "clean" install, if the driver has such an option (the idea is to remove all traces of the previous driver version). Have you tried running other OpenGL applications?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts