#4 The type initializer for 'CsGL.OSLib' threw an exception.

open
nobody
None
5
2009-09-27
2009-09-27
No

Hi.

I'm really new to OpenGL. I was programming on a x86 computer and my applications run fine, but recently i moved to a x64 machine, and it throws the following exception: "The type initializer for 'CsGL.OSLib' threw an exception." Please, help me deal with this issue?

Here is the part of code where the exception is thrown:
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
Size s = Size;

GL.glMatrixMode(GL.GL_PROJECTION);
GL.glLoadIdentity();
GL.gluPerspective(45.0f, (double)s.Width / (double)s.Height, 0.1f, 100.0f);
GL.glMatrixMode(GL.GL_MODELVIEW);
GL.glLoadIdentity();
}

It is thown on the first line: base.OnSizeChanged...

Discussion


Log in to post a comment.