This project is read-only.

Access Violation when I try to read the shader or programme info log.

May 9, 2013 at 9:37 PM
Edited May 10, 2013 at 2:25 AM

Every time I want to read an info log related to shaders, the programme crashes with

"The program '[3892] SharpGLTest.vshost.exe: Managed (v4.0.30319)' has exited with code -1073741819 (0xc0000005) 'Access violation'."

That happens if I use the shader objects or do it manually (I just c&p my C++ shader builder and fixed every syntax bug. The shader builder works well in C++).

Also, this library lacks of documentation. The C OpenGL API requires only a shader object and a C string for glShaderSource. All of a sudden, SharpGL wants 4 bloody parameters. Obviously, the shader is one of them. But then there's a source array, an integer that's just called "count" and then an integer array for length... What length? What will be counted? I have no damn idea... What do you need a source array for?
VertexShader vert = new VertexShader();
That's what I use to create the shaders.