This user is also testing memory leaks, in C++ code: Memory leak occurs if I use vtkSmartPointer in sub-thread. - #2 by sohnishi
You could take inspiration from his code + VTK examples + VTK_DEBUG_LEAKS
This user is also testing memory leaks, in C++ code: Memory leak occurs if I use vtkSmartPointer in sub-thread. - #2 by sohnishi
You could take inspiration from his code + VTK examples + VTK_DEBUG_LEAKS