I am getting a PInvokeStackImbalance error at runtime when calling OpenTK.OpenGL.GL.Ortho on 0.3.10.2.
Interestingly enough, this happens on Visual C# 2005 Express and apparently not on Visual C# 2005 Standard.
Could be the machine's drivers though.
here is the Message I get:
PInvokeStackImbalance was detected
Message: A call to PInvoke function 'OpenTK!OpenTK.OpenGL.GL+Delegates+Ortho::Invoke' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
Any ideas what could it be?
PS: I tried using glFrustum but got the same error, all other OpenGL calls seem to run fine.