Hello everyone:<br><br>I developed an windows application in Visual Studio with VTK-4.4. This programs runs very well under windows XP.. <br><br>I also installed this program under Windows Vista. Unforunately, I got the following very headache problems and have no idea how to solve them: <br><br>- I used vtkJPEGwriter to capture the screenshot in vtk window. It works in Windows XP. however, in Windows Vista, the image captured is blank. Following is hte code:<br><br>...<br>&nbsp;&nbsp;&nbsp; // Create the correct type of image writer, based on the file type ( jpg)<br>&nbsp;&nbsp; &nbsp;vtkImageWriter* writer = 0x0;<br>&nbsp;&nbsp; &nbsp;writer = vtkJPEGWriter::New();<br><br>&nbsp;&nbsp; &nbsp;// Grab the render window and create an image filter<br>&nbsp;&nbsp; &nbsp;vtkRenderWindow* renderWindow = m_VtkWidget-&gt;GetRenderWindow();<br>&nbsp;&nbsp; &nbsp;vtkWindowToImageFilter* toImageFilter = vtkWindowToImageFilter::New();<br><br>&nbsp;&nbsp; &nbsp;// Do the
 work<br>&nbsp;&nbsp; &nbsp;toImageFilter-&gt;SetInput( renderWindow );<br>&nbsp;&nbsp; &nbsp;writer-&gt;SetInput( toImageFilter-&gt;GetOutput() );<br>&nbsp;&nbsp; &nbsp;writer-&gt;SetFileName( filename ); <br>&nbsp;&nbsp; &nbsp;writer-&gt;Write();<br><br>&nbsp;&nbsp; &nbsp;// Clean up VTK objects<br>&nbsp;&nbsp; &nbsp;toImageFilter-&gt;Delete();<br>&nbsp;&nbsp; &nbsp;writer-&gt;Delete();<br><br><br>2. The second problem is:&nbsp; a 3D object was rendered in vtk window. After manipulating the rendered 3D object ( shift, zooming, rotating ...) in VTK window for a while, the application crashes and quits without any warning message. <br><br><br>Does anyone have any good idea about this? shall I compile the vtk in windows Vista? or I should&nbsp; change the code ? or other solutions? <br><br>It would be greatly applicated if you could let me know how to fix it or share your experience iwth me!<br><br>Thank you very much!<br><br>Richard - <br><p>&#32;
      <hr size=1>Be a better sports nut! Let your teams follow you 
with Yahoo Mobile. <a href="http://us.rd.yahoo.com/evt=51731/*http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
">Try it now.</a>