weird problem

I need help on an OpenGL project. It is kind of a huge project and the error I am getting while debugging is something I have never seen before. Therfore I am not sure which part of the code I should post here. I try to explain more.


In the main function there are several OpenGL function calls as follows

1
2
3
glutInit(&argc,argv);
glutDisplayFunc(displayFunc);
glutMainLoop();


In the displayFunc called in glutDisplayFunc there are these lines

1
2
3
4
5
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
window.draw();
glFlush();
}


When debugging, after execution of glFlush(); I get this error

There is no source code available for the current location.


I neither know what this error means nor find anything useful.


Any ideas will be appreciated and if more explanation is needed just let me know since I really don't know which part of the code to send.
It's not an error. It's just a debugging thing that tells you that you don't/can't look at the source code for that function. On windows, this kind of thing can happen if you try to step into a Sleep() call.
It happens when the executable the function is defined in doesn't contain debugging symbols, or when the debugging symbols it does contain point to sources that the debugger can't find.
I am getting a run time error when I try to run the program. You say that, the error I get when debugging is not related with the run-time error, right?

The run time error is possibly coming from somewhere else, right?
Topic archived. No new replies allowed.