I have a rather peculiar problem with the SDK in Visual Studio 2010 Express. When I start a debugging session in Visual Studio, something throws an exception at eglMakeCurrent. The typical error message is shown below:
Occasionally when I do a complete project rebuild, no exception is thrown, but that doesn't always work. When I run the project without debugging, everything works fine. There is no clear pattern to this behaviour. The problem occurs in v2.07.27.0484 of the SDK and also in the older versions.
Another problem: My application occasionally crashes when glDrawArrays() is called in the manner shown below:
float X, Y, Z;
/*.... fill List array with coords ....*/
glVertexPointer(3, GL_FLOAT, sizeof(vector3f), &List.X);
glDrawArrays(GL_POINTS, 0, 64);
...but not always! It's another one of those strange situations. When I use glDrawArrays somewhere else in the code (on a much shorter list), the above works, it renders all 64 points. When the above code is the only instance that uses glDrawArrays, my application crashes rather badly. Stranger still, if I reduce the Count parameter from 64 to about 14, the rendering works fine. If I increase the Count to 15 and beyond, all hell breaks loose.
Any suggestions on tackling this issue?