[vtkusers] vtkDebugLeaks...?

Charles Boivin okeovtk at gmail.com
Tue May 24 17:20:20 EDT 2005


I am re-sending this, as it does not seem it made it through (i.e. I
never received it back as part of the list). Apologies if this is a
duplicate for some.

Hello all,

I am trying to investigate leaks in my library, and I have just
recompiled the VTK binaries with the VTK_DEBUG_LEAKS option activated.
I then set up a test case to see if VTK would catch it..

Here is what I did. In the constructor of my main class, I added this:

vtkActor* pNewActor = vtkActor::New();

And added nothing else to the destructor (on purpose). I expected VTK
to let me know about this one, but again, nothing! I guess I need to
know how to use this vtkDebugLeaks class a bit better...

I am running VTK 4.4 on Windows XP, compiled with VS.NET 2003. What
behavior should I be expecting from vtkDebugLeaks? Is there anything
else that I need to turn on? I am using the libraries compiled in
'Release' mode -- could that be the problem?

Thanks in advance,

Charles Boivin



More information about the vtkusers mailing list