title: OpenTK crashing as soon as I use OpenGL
body: <p>I'm using OpenTK to make a C# OpenGL application.</p>
  
  <p>I'm trying not to use the GameWindow class to open a context - here is my class managing a window + context :</p>
  
  <pre><code>using OpenTK;
  using OpenTK.Graphics;
  using OpenTK.Graphics.OpenGL4;
  using OpenTK.Platform;
  using OpenTK.Input;
  
  class Window
  {
      private INativeWindow window_;
      private IGraphicsContext context_;
  
      private bool isExiting_;
  
      public Window(int width, int height, bool fullscreen, string title = "StormEngine application")
      {
          window_ = new NativeWindow(width, height, title, fullscreen ? GameWindowFlags.Fullscreen : GameWindowFlags.FixedWindow, GraphicsMode.Default, DisplayDevice.Default);
          context_ = new GraphicsContext(GraphicsMode.Default, window_.WindowInfo, 4, 4, GraphicsContextFlags.Default);
          context_.MakeCurrent(window_.WindowInfo);
          window_.Visible = true;
  
          window_.KeyDown += (sender, e) =&gt;
          {
              if (e.Keyboard[Key.Escape])
                  window_.Close();
          };
  
          isExiting_ = false;
      }
  
      public Window(int width, int height) : this(width, height, false) { }
  
      public bool EndFrame()
      {
          context_.SwapBuffers();
          window_.ProcessEvents();
          return (window_.Exists &amp;&amp; !isExiting_);
      }
  }
  </code></pre>
  
  <p>I'm then calling <code>Window w = new Window(800, 480);</code> to open a window.</p>
  
  <p>But as soon as I make a call to an OpenGL method, in my case <code>int programId = GL.CreateProgram();</code>, I am given a AccessViolationException.</p>
  
  <p>My guess is that OpenGL function pointers are not loaded correctly, but I cannot find where the problem happens (I get no information about what happens inside <code>GL.CreateProgam()</code>).</p>
  
  <p>Any idea of what might be happening, why, and how to resolve that ? :)</p>