This value is 0xcccccccc which means that it is a local uninitialized variable. Perhaps glGetInteger is returning without putting the value in there...? Do you see any other errors (OpenGL related perhaps) prior to this occurring...?
<br><br>If you init maxDimGL to 0 before the call does it still happen...?<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;">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: <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></blockquote></div><br>