raviksamala's picture

Null ReferenceException was unhandled

Project:The Open Toolkit library
Version:1.1-2014-01-02
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Have you created an OpenGL context via GameWindow or GLControl?

raviksamala's picture

#2

Status:open» fixed

Thanks.

I created GLControl using this example - http://www.opentk.com/doc/chapter/2/glcontrol

Got it to work!

-RS

the Fiddler's picture

#3

Version:1.0.0-rc1» 1.1-2014-01-02
Status:fixed» closed

Closing issues fixed in OpenTK 1.1.

If this is still an issue please file a new bug report at https://github.com/opentk/opentk/issues