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> // Create the correct type of image writer, based on the file type ( jpg)<br> vtkImageWriter* writer = 0x0;<br> writer = vtkJPEGWriter::New();<br><br> // Grab the render window and create an image filter<br> vtkRenderWindow* renderWindow = m_VtkWidget->GetRenderWindow();<br> vtkWindowToImageFilter* toImageFilter = vtkWindowToImageFilter::New();<br><br> // Do the
work<br> toImageFilter->SetInput( renderWindow );<br> writer->SetInput( toImageFilter->GetOutput() );<br> writer->SetFileName( filename ); <br> writer->Write();<br><br> // Clean up VTK objects<br> toImageFilter->Delete();<br> writer->Delete();<br><br><br>2. The second problem is: 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 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> 
<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>