[Insight-users] GDCMSeriesFileNames memory Leaks

Loris Vosilla loris.vosilla at gmail.com
Thu May 24 05:11:27 EDT 2007


Dear Itk users,

I'm using the class GDCMSeriesFileNames in order to scan
a directory containing dicom files. My purpose is to get back
the uid of the dicom volumes data contained in that directory.
In order get that result I use a piece of code similar to the one
below:

typedef GDCMSeriesFileNames tNameGenerator;
tNameGenerator::Pointer pNameGerator = tNameGenerator::New ()
pNameGenerator->SetInputDirectory (....);
const SerieUIDContainer& uidSerie = pNameGenerator->GetSeriesUID ();
SerieUIDContainer::const_iterator it = uidSerie.begin ();
for (it != uidSerie.end(); ++it) {
   std::cout << it->c_str () << std::endl;
}

After executing that my application gets some memory leaks.
I'm using ITK 3.2.0, has anyone ever had the same problem ?
Thanks in advance
-Loris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070524/a41ba311/attachment.html


More information about the Insight-users mailing list