Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Nikie

Pages: [1]
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
Quote
An unhandled exception of type 'System.AccessViolationException' occurred in OpenTK.dll

Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Crashes with any combination of precompiled CSFML+.Net - 2.0, 2.1, 2.2 and with latest 2.3 git sources.
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)

Pages: [1]