http://bugs.winehq.org/show_bug.cgi?id=13599
--- Comment #36 from max@veneto.com 2008-06-14 10:53:18 --- (In reply to comment #34)
Created an attachment (id=14003)
--> (http://bugs.winehq.org/attachment.cgi?id=14003) [details]
exception caught
Just to make sure the bug is really in glGetString: adding an exception handler by attached patch makes AutoCad finish just fine
I'm wondering why autocad installer needs opengl at all... at least, with autocad2005 the installer doesn't do graphics at all. Maybe it just asks for opengl info to set up display configuration... and maybe on windows it doesn't crash even with no gl context active, as does on linux.
But imho the proposed solution should be good... in glGetString() call documentation there's no hint on valid opengl context.
Maybe a good thing would be to code a small test app and run on windows, to see if it crashes too or the error is silently ignored.
OTOH, you patch does no harm, just avoiding a crash that would otherwise occurr, so i guess it could be added for 1.0 !
Ciao
Max