[vtkusers] Very important discovery\mistake !

Sebastien Auclair sxa at fluent.com
Tue Jun 3 13:22:34 EDT 2003


I tried SetReferenceCount(1) on all vtkInstances before calling "Delete" on
each of them.
It makes the application crash !



----- Original Message -----
From: "Charl P. Botha" <c.p.botha at its.tudelft.nl>
To: <vtkusers at public.kitware.com>
Sent: Tuesday, June 03, 2003 12:13 PM
Subject: Re: [vtkusers] Very important discovery\mistake !


> On Tue, 2003-06-03 at 18:06, Sebastien Auclair wrote:
> > m_polydata and m_normal are the values we want to keep but we must get
rid
> > of the filters and everything else !
> > Again, what would the correct approach be to make sure none of those
filters
> > remains.
>
> DeepCopy m_polydata and m_normal out to newly allocated objects, then
> Delete() the old ones.  This will allow the whole pipeline to
> self-destruct.
>
> --
> charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list