<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br>Hi, I have a problem with this type of pointer and I dont know how I can solve it. My function is:<br><br> typedef signed short PixelType; <br> typedef itk::Image< PixelType, Dimension > ImageType; //Tipo de imagen<br> typedef itk::ImageSeriesReader< ImageType > ReaderTAC;<br> typedef itk::GDCMSeriesFileNames NamesGeneratorType; //Para tener en un vector todos los archivos<br><br> NamesGeneratorType::Pointer nameGenerator = NamesGeneratorType::New();<br> nameGenerator->SetInputDirectory( "C:\\patient" );<br><br> const ReaderTAC::FileNamesContainer filenames = nameGenerator->GetInputFileNames();<br> ReaderTAC::FileNamesContainer::const_iterator FileItr = filenames.begin();<br> <br> for ( ;FileItr!=filenames.end();FileItr++)<br> {<br> //Make something<br> }<br><br>The probem is that I have memory leads: <br><br>Detected memory leaks!<br>Dumping objects -><br>{12053} normal block at 0x02A33F78, 12 bytes long.<br> Data: <x? x? > 78 3F A3 02 78 3F A3 02 CD CD CD CD <br>{12052} normal block at 0x02A360B0, 108 bytes long.<br> Data: < > C0 D3 07 01 00 00 00 00 14 99 95 02 00 00 00 00 <br>{12051} normal block at 0x02A34498, 12 bytes long.<br> Data: < D D > 98 44 A3 02 98 44 A3 02 CD CD CD CD <br>{12050} normal block at 0x02A36008, 108 bytes long.<br> Data: < > C0 D3 07 01 00 00 00 00 B4 91 95 02 00 00 00 00 <br>{12049} normal block at 0x02A341F0, 12 bytes long.<br> Data: < A A > F0 41 A3 02 F0 41 A3 02 CD CD CD CD <br>{12048} normal block at 0x02A35F60, 108 bytes long.<br> Data: < | > C0 D3 07 01 00 00 00 00 7C 8F 95 02 00 00 00 00 <br>Object dump complete.<br>El programa '[2660] ItkMFCd.exe: Nativo' terminó con código 2 (0x2).<br><br>This memory leads increasing if in my folder I have more images. I test the aplication and if I put only this instructions:<br><br> NamesGeneratorType::Pointer nameGenerator = NamesGeneratorType::New();<br>
nameGenerator->SetInputDirectory( "C:\\patient" );<br><br>the problem continue but if I remove the second instruction the problem dissapear.<br><br>Somebody Knows why???????<br><br>Thanks<br>                                            <br /><hr />Noticias, servicios, tendencias. <a href='http://homepage.msn.com/es-es/index.html' target='_new'>Haz de MSN.ES tu pág. de inicio</a></body>
</html>