AccessViolationException

Hello,

I'm new on this forum and it's been only few months I'm using this framework.

I'm not sure why, I'm getting this error upon exit:

A first chance exception of type 'System.AccessViolationException' occurred in Tao.OpenGl.dll

Sometimes the program exits without error but most of the times this error comes up.

Does anyone has any experience with this ?

Thanks a lot !!

The most likely cause is

The most likely cause is that you are holding onto an OpenGL resource while the program is going down.

Try detatching/deleting all shaders and VBOs before shutting down your application.

------
OpenTK

Thanks a lot for your reply

Thanks a lot for your reply !

I will take a look at this aspect.

Also I did notice that Gl.glGetError() is returning
that error message.

Thanks again for any hint !

I also had this error some

I also had this error some time ago. It was because I hadn't called the DestroyContexts() method of my simpleopenglcontrol instance before closing the window.

Theme by La Boite a site | Powered by Drupal