[vtkusers] This code gives memory leak.. Why?

John Drescher drescherjm at gmail.com
Wed Jul 7 10:24:40 EDT 2010


On Wed, Jul 7, 2010 at 10:19 AM, John Drescher <drescherjm at gmail.com> wrote:
>>>What can i do to avoid this memory leaks.,?
>
> Use vtkSmartPointer
>
> see the examples in the wiki for usage.
>
> http://www.cmake.org/Wiki/VTK/Examples/GuideLines
>

Actually I do not see a leak in my brief look at your code. I assume
you are looking at some memory status that is growing each time. Does
this continue if you run it for hours? Perhaps it is what vtk uses as
cache?

John



More information about the vtkusers mailing list