[vtkusers] vtkDebugLeaks...?
Mathieu Malaterre
mathieu.malaterre at kitware.com
Wed May 25 09:27:31 EDT 2005
Charles,
The only reason the message woult not popup would be that the window is
not opened? A few things to try:
- Really make only one simple executable:
main()
{
vtkActor::New();
}
- Make sure you are linking to the proper libraries (the one that
actually have vtkDebugLeaks compiled in). Use 'depends' to check
- Use vtkFileOutputWindow instead of the popup to redirect to a file
and then check the file.
- Last resort, I think on cygwin/X11 it should redirect vtkDebugLeaks
output to cout/cerr therefore you should be garantee to see the message.
Good luck,
Mathieu
Charles Boivin wrote:
> 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
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list