The documentation for this class says:<br><a href="http://www.vtk.org/doc/nightly/html/classvtkFileOutputWindow.html#details">http://www.vtk.org/doc/nightly/html/classvtkFileOutputWindow.html#details</a><br><br>"To use this class, instantiate it and then call SetInstance(this)."<br>
<br>It seems like you have to do this:<div><br></div><div><div> vtkSmartPointer<vtkFileOutputWindow> fileOutputWindow = </div><div> vtkSmartPointer<vtkFileOutputWindow>::New();</div><div> fileOutputWindow->SetFileName( "output2.txt" );</div>
<div> fileOutputWindow->SetInstance( fileOutputWindow );</div><div><br></div><div>If you are supposed to call SetInstance(this), why not just set that internally and not require a SetInstance call at all?</div><div><br>
</div>David</div>