<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Hi all and luis,<div><br></div><div>I found some memory leakage issues in ITK .I am using Visual studio 2008 with MSVC 2009 Compiler in Window 7.</div><div><br>
</div><div><b><u>code:</u></b></div>
<div>//--------------------------------------------------------------</div><div><div>#include "itkImageFileReader.h"</div><div><br></div><div>int main( int argc, char *argv[] )</div><div>{</div><div>
</div><div> return 0;<br></div><div>}</div><div><br></div><div>//--------------------------------------------------------------<br></div><div><br></div><div><br></div><div><b><u>Detection:</u></b></div><div>
<b><i>Case 1:</i></b></div><div><br></div><div>Tool: Visual Leak Detector</div><div>Leakage:</div><div><br></div><div><div>--------- Block 23350 at 0x0000000004492F10: 32 bytes ----------</div>
<div> Call Stack:</div><div> e:\debuglibrary\itksrc-4.3.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5fl.c (201): Segmentation.exe!H5FL_malloc + 0xB bytes</div><div> e:\debuglibrary\itksrc-4.3.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5fl.c (401): Segmentation.exe!H5FL_reg_malloc + 0xE bytes</div>
<div><b>.<br></b></div><div><b>.</b></div><div><b>.</b></div><div><br></div></div><div><div>Visual Leak Detector detected 1711 memory leaks (249641 bytes).</div><div>Largest number used: 5007046 bytes.</div><div>Total allocations: 5257643 bytes.</div>
<div>Visual Leak Detector is now exiting.</div><div>Why it only shows with Hdf5 ?</div></div><div><br></div><div><b><i>Case 2:</i></b></div><div>Tool : Memory Validator 64 bit</div><div>Leakage:</div>
<div><br></div><div><div> 63 : 0x000000013f5f1505 Segmentation.exe itk::ImageIOFactoryRegisterManager::ImageIOFactoryRegisterManager : [d:\project\wip_april2013\code\itkexample\confidence connected2d\bin\itkiofactoryregistration\<b>itkimageiofactoryregistermanager.h</b> Line 31]</div>
<div> 26 : public:</div><div> 27 : ImageIOFactoryRegisterManager(void (*list[])(void))</div><div> 28 : {</div><div> 29 : for(;*list; ++list)</div><div> 30 : {</div><div> 31 : (*list)();</div>
<div> 32 : }</div><div> 33 : }</div><div> 34 : };</div><div> 35 : </div><div> 36 : </div><div><br></div></div><div>like that </div><div><br>
</div><div><br></div><div>Same i tried with VTK it doesn't show any leakage.</div><div><br></div><div>Please correct me if my observation is wrong.I<br></div><div><br></div></div></div>
</div><br></div>