views:

207

answers:

1

I am new in OpenGL. I am using glut library in VC express edition on vista. I am getting runtime error of "access violation" on the following line

glClear(GL_COLOR_BUFFER_BIT);

Can I avoid this error somehow?

Shahab

A: 

for me setting project properties -> linker -> advanced -> data execution prevention to /NXCOMPAT:NO solved the problem

peter