[vtkusers] stack overflow

Luca Antiga lucantiga at hotmail.com
Mon Sep 4 17:35:35 EDT 2000


Hi, everyone. I hope you had a good summer.
I recently upgraded from vc++5.0 & vtk2.0 to vc++6.0 & vtk3.1.2 (I'm working 
on a WinNT workstation).
I have some problems with code that gave me no problem when I was using 
vtk2.0.
For instance, I get an error message of "stack overflow" when executing the 
following code
(this also happens in other situations)


vtkPolyDataReader *polyDataReader = vtkPolyDataReader::New();
polyDataReader->SetFileName(INPUT_POLYDATA_FILE);
polyDataReader->Update();

vtkPolyDataConnectivityFilter *connectivityFilter = 
vtkPolyDataConnectivityFilter::New();
connectivityFilter->SetInput(polyDataReader->GetOutput());
connectivityFilter->SetExtractionModeToLargestRegion();
connectivityFilter->Update();

vtkPolyDataWriter *polyDataWriter = vtkPolyDataWriter::New();
polyDataWriter->SetInput(connectivityFilter->GetOutput());
polyDataWriter->SetFileName(OUTPUT_POLYDATA_FILE);
polyDataWriter->SetFileTypeToASCII();
polyDataWriter->Write();


Does this "stack overflow" error suggest something to you?
Thank you in advance

Luca Antiga
Bioengineering Dept.
Mario Negri Institute - Ranica (BG) ITALY
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.





More information about the vtkusers mailing list