[vtkusers] Very important disc.. (Solution)

Sebastien Auclair sxa at fluent.com
Tue Jun 3 13:57:20 EDT 2003


Just for the record !

Looks like the order to which "Delete"s are made has some importance !
No need to play with "SetReferenceCount()" and stuff.
Just deleting in the reverse order the instances were used (created) should
destroy all  of them.

Thanks !
__________________________________
Seb

----- Original Message -----
From: "Sebastien Auclair" <sxa at fluent.com>
To: "Sebastien BARRE" <sebastien at barre.nom.fr>
Cc: "Charl P. Botha" <c.p.botha at its.tudelft.nl>;
<vtkusers at public.kitware.com>
Sent: Tuesday, June 03, 2003 1:34 PM
Subject: Re: [vtkusers] Very important discovery\mistake !


> What ?
>
> ----- Original Message -----
> From: "Sebastien BARRE" <sebastien at barre.nom.fr>
> To: "Sebastien Auclair" <sxa at fluent.com>
> Cc: "Charl P. Botha" <c.p.botha at its.tudelft.nl>;
> <vtkusers at public.kitware.com>
> Sent: Tuesday, June 03, 2003 1:25 PM
> Subject: Re: [vtkusers] Very important discovery\mistake !
>
>
> > At 6/3/2003 01:22 PM, Sebastien Auclair wrote:
> > >I tried SetReferenceCount(1) on all vtkInstances before calling
"Delete"
> on
> > >each of them.
> > >It makes the application crash !
> >
> > Yes, you have to call ->PleaseSetMeFreeeeeee() on each object before
doing
> > that.
>
> _______________________________________________
> 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