I'm currently rewriting what I had for my game's engine, and this time I'm using OpenTK more than I am Tao. I just finished the model portion of my content pipeline, and as I went to test rendering a model, I got an access violation exception on this bit of code: (not sure how useful it is to you, though)
GL.DrawElements(BeginMode.Triangles, polyCount, DrawElementsType.UnsignedShort, IntPtr.Zero); // Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Does anyone know how I could possibly fix and prevent this? I tried throwing a try/catch block around it so that I could at least print that I was getting the error rather than having the program be interrupted, but I still get the interruption.
Also, if it helps, I'm using the 2012/03/15 nightly build of OpenTK.