ITel's picture

Null reference exception in GraphicsContext .CreateDummyContext()

Project:The Open Toolkit library
Version:0.9.8
Component:Code
Category:bug report
Priority:normal
Assigned:the Fiddler
Status:closed
Description
// create GLWidget
GraphicsContext.CreateDummyContext();
GL.LoadAll();
Glu.LoadAll();

has crashed with:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at OpenTK.Graphics.GraphicsContext.get_CurrentContext () [0x00000] 
  at OpenTK.Graphics.GL.LoadAll () [0x00000] 
  at MainWindow..ctor () [0x0001e] in /home/ilya/usu/csharp/Test/Test/MainWindow.cs:16 
  at Test.MainClass.Main (System.String[] args) [0x00005] in /home/ilya/usu/csharp/Test/Test/Main.cs:11

OS: Ubuntu 9.04, mono from repositories (version 2.0.1)

AttachmentSize
Test.tar_.gz5.94 KB

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

Title:Null reference exception in GraphicsContext.CreateDummyContext()» Null reference exception in GraphicsContext .CreateDummyContext()
Status:open» confirmed
the Fiddler's picture

#2

Assigned to:ITel» the Fiddler
Status:confirmed» in progress

Working on it.

JTalton's picture

#3

I have also seen this issue. Let me know when it is fixed in SVN and I'll test it out.

the Fiddler's picture

#4

Version:0.9.7» 0.9.x-dev

Fixed in rev. 1811. The fix required a fairly extensive refactoring of the DummyGLContext logic - the new implementation should be much more robust.

the Fiddler's picture

#5

Status:in progress» fixed
the Fiddler's picture

#6

Version:0.9.x-dev» 0.9.8
Status:fixed» closed

Closing issues fixed in 0.9.8.