I was getting this error recently after calling
I was using a single context of GL and multiple GLControls in VB.Net.
The error only ever happened when I had closed the control's parent form and then re-opened it.
Error 6 is a windows Invalid Handle error, so after a little experimenting, I decided to override the GLControls'
OnHandleDestroyed event and removed the
Now I don't really know what the implications of doing this may be, but everything seems to work fine now.
Any updates and I will keep posting.