1
DotNet / OpenTK AccessViolationException on any OpenGL call
« on: May 27, 2015, 09:58:24 pm »
The simplest OpenGL calls through OpenTK are crashing with
Also tried switching OpenTK from latest git version to precompiled binaries from OpenTK website - same crash.
Win7 and VS2015RC (I think it also crashed with 2013, can't say for sure).
NVidia 650TI, latest 352.86 (Witcher 3) drivers, same thing with 350.12 (GTAV) drivers. OpenGL - 4.5.
Also reported here on github by another fellow.
I also noticed that when you create a window with OpenTK the context has IsCurrent set to true, while with SFML it's false.
Minimal code, the beginning is a copy of Window example:
Quote
An unhandled exception of type 'System.AccessViolationException' occurred in OpenTK.dllCrashes with any combination of precompiled CSFML+.Net - 2.0, 2.1, 2.2 and with latest 2.3 git sources.
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Also tried switching OpenTK from latest git version to precompiled binaries from OpenTK website - same crash.
Win7 and VS2015RC (I think it also crashed with 2013, can't say for sure).
NVidia 650TI, latest 352.86 (Witcher 3) drivers, same thing with 350.12 (GTAV) drivers. OpenGL - 4.5.
Also reported here on github by another fellow.
I also noticed that when you create a window with OpenTK the context has IsCurrent set to true, while with SFML it's false.
Minimal code, the beginning is a copy of Window example:
(click to show/hide)