
Null reference exception in GraphicsContext .CreateDummyContext()
Posted Sunday, 3 May, 2009 - 20:17 by ITel| Project: | The Open Toolkit library |
| Version: | 0.9.8 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | the Fiddler |
| Status: | closed |
Jump to:
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)
| Attachment | Size |
|---|---|
| Test.tar_.gz | 5.94 KB |


Comments
#1
#2
Working on it.
#3
I have also seen this issue. Let me know when it is fixed in SVN and I'll test it out.
#4
Fixed in rev. 1811. The fix required a fairly extensive refactoring of the DummyGLContext logic - the new implementation should be much more robust.
#5
#6
Closing issues fixed in 0.9.8.