I am using the OpenTK GLControl (a .Net OpenGL winforms control) to paint some things using opengl. The problem I am now facing is I am getting a big red cross or x on the windows form where the control lies, and its completely impossible to debug because I'm finding no way to know where the error is occurring.
I see no error notifications / exceptions. I had these same problems earlier with XNA, though I quit using it for other reasons.
Perhaps I'm missing something. Is there a window somewhere in Visual Studio which I can open and see these errors?
The windows that are automatically open during debug mode is Locals, and Call Stack. And they are completely empty.
You could try breaking on all exceptions - break on CLR exceptions. (Control/Alt + E to bring up the dialog, then check the Common Language Runtime Exceptions checkbox).
As you're debugging it should stop where the error occurs.
If you can't find anything that way, you might be able to see something by catching the overall AppDomain exception, or Threading exception - details Here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With