<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@MS Mincho";}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:Consolas;}
span.E-MailFormatvorlage19
        {mso-style-type:personal-reply;
        font-family:"Calibri","serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","serif";
color:#1F497D'>Does this crash occur with Mesa as well? If yes, it might be
interesting to step through the Mesa code to see what is going wrong in there.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","serif";
color:#1F497D'>Otherwise, drivers are never bug free of course. This could be a
bug in the Nvidia driver<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span lang=DE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=DE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
wine-patches-bounces@winehq.org [mailto:wine-patches-bounces@winehq.org] <b>On
Behalf Of </b>Louis. Lenders<br>
<b>Sent:</b> Thursday, June 26, 2008 9:06 AM<br>
<b>To:</b> wine-patches@winehq.org<br>
<b>Subject:</b> opengl32: work around a crash in glGetString<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>Hi this fixes
http://bugs.winehq.org/show_bug.cgi?id=13599<br>
<br>
A +relay trace shows glGetString is crashing inside glGetString. The cause is
_not_ a lacking&nbsp; opengl context setup around glGetString. I did some
testing and both on windows and wine glGetString&nbsp; just returns NULL if
this is the case, but it never crashes inside glGetString:<br>
<br>
/* glGetString without opengl context: */<br>
0009:Call opengl32.glGetString(00001f01) ret=004016bc<br>
0009:Ret&nbsp; opengl32.glGetString() retval=00000000 ret=004016bc<br>
<br>
/* Crash from Autocad */<o:p></o:p></p>

<pre>0064:Call opengl32.glGetString(00001f01) ret=1000cd58<br>
<br>
<o:p></o:p></pre><pre>0064:trace:seh:raise_exception code=c0000005 flags=0 addr=0x60ec12f6<br>
<br>
<o:p></o:p></pre><pre>0064:trace:seh:raise_exception&nbsp; info[0]=00000000<br>
<br>
<o:p></o:p></pre><pre>/* and<o:p></o:p></pre><pre style='margin-bottom:12.0pt'> never returns*/<br>
<br>
<o:p></o:p></pre><pre style='margin-bottom:12.0pt'><br>
<br>
<o:p></o:p></pre><pre style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></pre>

<p class=MsoNormal>This bug has been reproduced by several other people , so
it's also not due to a bad gl-setup on my side. In case you want to try ,
Autocad trial 2004 can be downloaded from
http://www.brothersoft.com/autocad-78351.html. It's the main issue that prevent
autocad 2004 up to 2008 from running.<br>
<br>
So for now my conclusion is, this is a nasty bug outside wine, and an exception
handler is needed to work around the crash. If the patch is rejected i would
appreciate some input. Thanks and regards<o:p></o:p></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=1 width="100%" align=center>

</div>

<p class=MsoNormal>Not happy with your email address? <br>
<a href="http://uk.docs.yahoo.com/ymail/new.html">Get the one you really want</a>
- millions of new email addresses available now at <a
href="http://uk.docs.yahoo.com/ymail/new.html">Yahoo!</a><o:p></o:p></p>

</div>

</div>

</body>

</html>