[vtkusers] Unhandled exception at the time of Unregistering vtkSmartPointer

David Doria daviddoria at gmail.com
Mon Jun 11 20:11:21 EDT 2012


On Mon, Jun 11, 2012 at 7:23 PM, cel02000 <cel02000 at yahoo.com> wrote:

> I figured it out. It should be like the following for deleting each
> element.
> vectorOfPolyData[p]->Delete();
>
> However, when the code gets to this point at run time, I get handled
> exception error. What could be the reason?
>
> Regards,
> Ahmad
>

How did you allocate the polydata? It should be

vectorOfPolyData[p] = vtkPolyData::New();

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120611/ab0d60f1/attachment.htm>


More information about the vtkusers mailing list