[wxVTK] terrible memory leak problems with using vtk on wxwidgets
Brought to you by:
malat
From: Premraj, S. K. <sen...@ui...> - 2008-10-08 23:11:45
|
Hello, I wrote an application in just a command line format using vtk and I was not getting any memory leaks in it even if I did not call Delete() on any of the filters or datastructures. But a similar code written with wxwidgets is giving me tons and tons of memory leaks. I am using VTK 5.03 and wxwidgets 2.6.3. All I am doing is creating an empty vtkPolyData* using the New() method and pass the pointer around through various classes to bring it back for displaying in my wxwidgets application( I don't do anything with it in the wxwidgets class). When I close the application, VisualLeak detector is pointing to the New() method like 12 times even though it should be called only once. If I try to delete the polydata there is no memory leaks but of course the second I actually do something to the polydata like make an ITK image into that polydata, then the Delete() call makes my application crash. If anyone could help me with it, it would be great. Thanks a lot in advance. Senthil |