
QuickStart throws AccessViolationException on startup
Posted Thursday, 29 April, 2010 - 13:42 by pjcozzi| Project: | The Open Toolkit library |
| Version: | 1.0-2010-10-06 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Description
On Vista 64, ATI Radeon HD 5870 with Catalyst 10.3, and dual monitors (which may or may not matter).
The QuickStart throws an AccessViolationException on startup. Debug output, including call stack, is attached. Funny thing is the other examples run ok.
| Attachment | Size |
|---|---|
| DebugOutput.txt | 7.05 KB |


Comments
#1
Thanks for the stack trace, this is a known issue that I haven't managed to reproduce yet (neither on Ati nor on Nvidia). I will try with dual monitors to see if that is playing a role.
#2
#3
I tried with a single monitor and can still reproduce it. I've unsuccessfully tried various calls to base() in Game's constructor, including the call used in the OpenGL 3 example, HelloGL3, which works on the same machine.
I believe it throws because mode.Index is null when this is called:
Debug.Print("GraphicsMode: {0}", mode);
See attached ToString.jpg. If I step over that line, creating a context throws:
implementation = factory.CreateGLContext(mode, window, shareContext, direct_rendering, major, minor, flags);
I've attached the parameters to CreateGLContext, see parameters.txt.
Let me know if there's anything you want me to try.
#4
Good news - after upgrading to Catalyst 10.4, this does not appear to be a problem. The QuickStart runs as you would expect.
#5
This issue was fixed in 1.0-2010-10-06.