A google for "OpenGL error code" took me to an msdn page listing some error codes... which led me the documentation page for "glGetError" :<br><br><a href="https://msdn2.microsoft.com/en-us/library/ms537109.aspx">
https://msdn2.microsoft.com/en-us/library/ms537109.aspx</a><br><br><br><div><span class="gmail_quote">On 6/28/07, <b class="gmail_sendername">Tim Hutton</b> <<a href="mailto:tim.hutton@gmail.com">tim.hutton@gmail.com</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ah yes, maxDimGL does have that value when it goes in, so I guess that<br>
call is simply now writing to the variable. I don't see any opengl or<br>vtk errors prior to that point. How do I retrieve the opengl error<br>code?<br><br><br>On 28/06/07, David Cole <<a href="mailto:david.cole@kitware.com">
david.cole@kitware.com</a>> wrote:<br>> This value is 0xcccccccc which means that it is a local uninitialized<br>> variable. Perhaps glGetInteger is returning without putting the value in<br>> there...? Do you see any other errors (OpenGL related perhaps) prior to this
<br>> occurring...?<br>><br>> If you init maxDimGL to 0 before the call does it still happen...?<br>><br>><br>><br>> On 6/28/07, Tim Hutton <<a href="mailto:tim.hutton@gmail.com">tim.hutton@gmail.com
</a> > wrote:<br>> ><br>> > I'm getting a bad_alloc exception sometimes when I try to load a<br>> > textured surface in VTK. The error is due to the following line in<br>> > vtkopengltexture.cxx
(167):<br>> ><br>> > glGetIntegerv(GL_MAX_TEXTURE_SIZE,&maxDimGL);<br>> ><br>> > which returns a value of -858993460. On other occasions it returns a<br>> > value of 4096 and everything works fine.
<br>> ><br>> > Have you come across anything similar before?<br>> ><br>> > Platform:<br>> > vtk5.0.3<br>> > win xp<br>> > microsoft visual studio 7<br>> ><br>> > Thanks,
<br>> ><br>> > Tim<br>> > _______________________________________________<br>> > This is the private VTK discussion list.<br>> > Please keep messages on-topic. Check the FAQ at:<br>> <a href="http://www.vtk.org/Wiki/VTK_FAQ">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>> > Follow this link to subscribe/unsubscribe:<br>> > <a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>> >
<br>><br>><br><br><br>--<br>Tim Hutton - <a href="http://www.sq3.org.uk">http://www.sq3.org.uk</a><br><br>Take the Organic Builder challenge -<br><a href="http://www.sq3.org.uk/Evolution/Squirm3/OrganicBuilder/">http://www.sq3.org.uk/Evolution/Squirm3/OrganicBuilder/
</a><br></blockquote></div><br>