[vtkusers] Disabling vtkOutputWindow
Dean Inglis
dean.inglis at camris.ca
Wed Jul 6 11:05:33 EDT 2005
Luca:
you could add this at the beginning of
your app to log to a text file:
vtkOutputWindow* ow = vtkOutputWindow::GetInstance();
vtkFileOutputWindow* fow = vtkFileOutputWindow::New();
fow->SetFileName( "debug.log" );
if ( ow )
{
ow->SetInstance( fow );
}
fow->Delete();
If you are using C++ Builder:
String m_workingDir = GetCurrentDir();
String m_debugFile = m_workingDir + "\\debug.log";
fow->SetFileName( m_debugFile.c_str() );
Dean
More information about the vtkusers
mailing list