luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.
MIT License
568 stars 108 forks source link

WinForms.GlControl exception handling #69

Closed antoinecla closed 6 years ago

antoinecla commented 6 years ago

The OnContextCreated() and OnPaint() methods catch all exception silently (OnPaint does draw the exception). This makes debugging difficult.

Worse, exceptions can go entirely unnoticed when using a release version of OpenGL.Net.

I kindly suggest that you remove the catch all or provide a property to control this behavior!

antoinecla commented 6 years ago

There is still a catch all in OnContextCreated()!

Is this on purpose?