[vtkusers] vtk5.10.1 and DebugLeaks

Laurence Griffiths lgriffiths.aero at gmail.com
Wed May 29 10:40:32 EDT 2013


I have compiled VTK 5.10.1 with:

VTK_DEBUG_LEAKS: ON
CMAKE_COMPILER_TYPE: Debug

however it doesnt produce any output in python (not tested in c++), My test
script is:

#-----------------------------------------------
import vtk
DebugLeaks=vtk.vtkDebugLeaks()
Reader=vtk.vtkXMLMultiBlockDataReader()
Reader.SetFileName("input.vtm")
Reader.Update()

#Just to make extra sure:
Reader.Register(None)

DebugLeaks.PrintCurrentLeaks()
#-----------------------------------------------

Runing the same code with VTK6-RC1 with VTK_DEBUG_LEAKS

Produces lots of output:
vtkDebugLeaks has detected Leaks!
class .... etc etc

Does anybody know any tricks to get this to work in 5.10.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130529/8a1a54f3/attachment.htm>


More information about the vtkusers mailing list