[vtkusers] vtkDICOMImageReader possible leak.

mathieu coursolle mcoursolle at gmail.com
Sat Jun 11 16:30:21 EDT 2005


Hi to all, 
I was wondering if any of you have ever had a memory leak problem
using vtkDICOMImageReader (VTK 4.4).
The following codes produces some leaks, but only when I open a volume.

            //Create the reader.
            vtkDICOMImageReader* reader_ptr = vtkDICOMImageReader::New();
            vtkSmartPointer<vtkDICOMImageReader> reader(reader_ptr);
            reader_ptr->Delete();

            //Load the file.
            reader->SetDirectoryName(D:\\DICOM);
            reader->Update();

Otherwise it works fine.

Thanks.

MAthieu



More information about the vtkusers mailing list