
Null ReferenceException was unhandled
Posted Tuesday, 16 November, 2010 - 13:46 by raviksamala| Project: | The Open Toolkit library |
| Version: | 1.0.0-rc1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | fixed |
Jump to:
Description
Hello,
Can you please help me with the following compile error:
Null ReferenceException was unhandled
Object reference not set to an instance of an object.
The error is pointing at:
int testImageTexture = GL.GenTexture();
I am using Visual C# 2010 Express.
Thanks,
RS.


Comments
#1
Have you created an OpenGL context via GameWindow or GLControl?
#2
Thanks.
I created GLControl using this example - http://www.opentk.com/doc/chapter/2/glcontrol
Got it to work!
-RS