I am writing a program, running on many different machines. The program uses a control that is derived from GLControl. In a few of machines which program runs on them, OpenTK raises a NullReferenceException. I believe this exception is machine dependent, because the code works fine on the machines exact same condition.
The buggy code is located in the constructor of the form. I read a thread here and tried to solve the problem with:
dummyGraphics = OpenTK.Graphics.GraphicsContext.CreateDummyContext(); OpenTK.Graphics.OpenGL.GL.LoadAll();
but now CreateDummyContext raises the exception. My version of OpenTK is 126.96.36.199.
How should I solve this problem?
Thank you in advance for your help