<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:black;
letter-spacing:0pt;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=SV link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:black'>Hello,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'>I have built an application using ITK for reading Ultrasound volumes. When I use Visual Leak Detector on it, through Visual Studio 2010, it shows massive memory leaks and a huge output. Looking at the output the message below repeats for different blocks. I don't feel totally at home with construction/destruction of objects in ITK yet and I am thinking maybe it is something wrong with Visual Leak Detector. Maybe someone can clarify by looking at the below text if I have a memory leakage or not.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'>Thank you,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'>Mikael<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'>---------- Block 245701 at 0x0000000007B14ED0: 88 bytes ----------<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> Call Stack:<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5fl.c (201): extractBoneProbability.exe!H5FL_malloc + 0xB bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5fl.c (401): extractBoneProbability.exe!H5FL_reg_malloc + 0xE bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5pint.c (966): extractBoneProbability.exe!H5P_create_prop + 0xC bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5pint.c (1905): extractBoneProbability.exe!H5P_register_real + 0x7E bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5pocpl.c (147): extractBoneProbability.exe!H5P_ocrt_reg_prop + 0x61 bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5pint.c (401): extractBoneProbability.exe!H5P_init_interface + 0x1C bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5pint.c (329): extractBoneProbability.exe!H5P_init + 0x20 bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5.c (172): extractBoneProbability.exe!H5_init_library + 0x5 bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5i.c (1131): extractBoneProbability.exe!H5Iget_type + 0x20 bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\c++\src\h5idcomponent.cpp (317): extractBoneProbability.exe!H5::IdComponent::p_valid_id + 0x9 bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\c++\src\h5datatype.cpp (784): extractBoneProbability.exe!H5::DataType::close + 0x10 bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\c++\src\h5datatype.cpp (809): extractBoneProbability.exe!H5::DataType::~DataType + 0xD bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\c++\src\h5atomtype.cpp (293): extractBoneProbability.exe!H5::AtomType::~AtomType + 0x37 bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\c++\src\h5predtype.cpp (301): extractBoneProbability.exe!H5::PredType::~PredType + 0x37 bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> 0x000000003FE3EE21 (File and line number not available): extractBoneProbability.exe!`dynamic atexit destructor for 'H5::PredType::NotAtexit'' + 0x21 bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crt0dat.c (567): MSVCR100D.dll!doexit<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crt0dat.c (394): MSVCR100D.dll!exit<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crtexe.c (568): extractBoneProbability.exe!__tmainCRTStartup<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crtexe.c (371): extractBoneProbability.exe!mainCRTStartup<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> 0x00000000775B652D (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0xD bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> 0x00000000777EC541 (File and line number not available): ntdll.dll!RtlUserThreadStart + 0x21 bytes<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> Data:<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> F0 F1 AD 07 00 00 00 00 01 00 00 00 00 00 00 00 ........ ........<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> A0 F2 AD 07 00 00 00 00 02 00 00 00 00 00 00 00 ........ ........<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> 00 00 00 00 00 00 00 00 86 25 5A 3F 01 00 00 00 ........ .%Z?....<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'> 00 00 00 00 00 00 00 00 ........ ........<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'>Visual Leak Detector detected 1759 memory leaks (259177 bytes).<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'>Largest number used: 140512177 bytes.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'>Total allocations: 153177251 bytes.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'>Visual Leak Detector is now exiting.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:Consolas'>The program '[10236] extractBoneProbability.exe: Native' has exited with code 0 (0x0).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black'><o:p> </o:p></span></p></div></body></html>