[vtkusers] SegFault with vtkPoints->SetNumberOfPoints

Curtis Badke cbadke at gmail.com
Wed Oct 27 13:54:49 EDT 2004


Good Day.

I am having problems with a recurring segFault when I call
SetNumberOfPoints on an instance of vtkPoints.  This problem does not
arise consistently which suggests to me that it is a memory problem.

I noticed in the documentation that SetNumberOfPoints does a memory
allocation so I wonder if perhaps there is a problem with an
allocation error.

Does anyone know in what conditions SetNumberOfPoints could cause a
segFault and whether or not there is something I could really do about
it?  Or perhaps there is an alternate function I could call that might
be safer but perform the same job?

Just so you know, I am trying to set the number of points to be ~600000.

Thanks.
Curtis

-- 
Light travels faster than sound. This is why some people appear bright
until you hear them speak.



More information about the vtkusers mailing list