I&#39;ve built VTK 5.6.1 with Visual Studio 2005 with no problems. However, running any code is quite strange - when I build in Release, running code in Release works, but in Debug there is a buffer overrun error. The reverse is also a problem, when I&#39;ve built in Debug, running code in Debug works with no problems, but buffer overrun errors occur in Release. I&#39;ve noticed that the overrun occurs when a source object is updated (see below). Any ideas? Thanks in advance.  <br>
<br>i.e.<br><br>vtkSmartPointer&lt;vtkSphereSource&gt; sphereSource = vtkSmartPointer&lt;vtkSphereSource&gt;::New();<br>sphereSource-&gt;SetThetaResolution(30);<br>sphereSource-&gt;SetPhiResolution(15);<br><b>sphereSource-&gt;Update();</b> //&lt;--------------this line buffer overruns. <br>
<br><br>