[Lazarus] catch TOpenGLContext exceptions
Andrea Mauri
andrea.mauri.75 at gmail.com
Tue Mar 1 13:08:24 CET 2016
Dear all,
I developed an application using TOpenGLcontext component in a form.
Some users have problems with opengl (especially on linux), missing
libraries, FB config missing and so on.
Actually if the system on which my application is running has problems
with opengl my app crashes.
e.g.:
"Could not find FB config"
I would like to catch these exceptions and if Topenglcontext cannot work
I would like to disable it and run my app wihout it. The form with
TOpenGLcontext can be used but it is not essential, my app can work
without it losing few functionalities.
I tried creating the TOpenGLcontext at runtime (in try .. finally) but
it does not work, I got an error and the app stop working.
I would like to test if TOpenGLcontext can be created, if not I would
like to not create TOpenGLcontext but let my app running anyway.
Is it possible? How can I do that?
Thanks.
Andrea
More information about the Lazarus
mailing list