[Insight-developers] List of smart pointers

Julien Jomier jjomier@cs.unc.edu
Fri, 1 Nov 2002 10:49:22 -0500


Well, I noticed that the memory was not totally freed.
That's why I was suspicious but maybe, like you said,
it is due to the list class itself.

Thanks for the clarification.

Julien

> -----Original Message-----
> From: insight-developers-admin@public.kitware.com 
> [mailto:insight-developers-admin@public.kitware.com] On 
> Behalf Of William A. Hoffman
> Sent: Friday, November 01, 2002 8:41 AM
> To: Julien Jomier; Insight Developers
> Subject: Re: [Insight-developers] List of smart pointers
> 
> 
> list.clear should call the destructor on all the smart pointers which 
> should free
> the itk objects.   The memory may be kept by the list class 
> memory pool, but
> that should not be a problem.    What is the problem you are having?
> 
> -Bill
> 
> 
> At 10:58 PM 10/30/2002 -0500, Julien Jomier wrote:
> >Hi all,
> >
> >I have a problem deleting a list of smart pointers.
> >When I do a "list.clear()" it seems that the header of
> >the smart pointer is still in memory, isn't it ?
> >
> >Is there a way to delete completly the list?
> >Should I use a list of raw pointers instead ?
> >
> >Thanks
> >
> >Julien
> >
> >_______________________________________________
> >Insight-developers mailing list Insight-developers@public.kitware.com
> >http://public.kitware.com/mailman/listinfo/insight-developers
> 
> 
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers
>