[Insight-users] Fwd: ITK having Memory leakage problem

qt.itk.vtk.help qt.itk.vtk.help at gmail.com
Thu Jul 4 00:57:15 EDT 2013


Hi all and luis,

I found some memory leakage issues in ITK .I am using Visual studio 2008
with MSVC 2009 Compiler in Window 7.

*code:*
//--------------------------------------------------------------
#include "itkImageFileReader.h"

int main( int argc, char *argv[] )
{

  return 0;
}

//--------------------------------------------------------------


*Detection:*
*Case 1:*

Tool:  Visual Leak Detector
Leakage:

--------- Block 23350 at 0x0000000004492F10: 32 bytes ----------
  Call Stack:

e:\debuglibrary\itksrc-4.3.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5fl.c
(201): Segmentation.exe!H5FL_malloc + 0xB bytes

e:\debuglibrary\itksrc-4.3.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5fl.c
(401): Segmentation.exe!H5FL_reg_malloc + 0xE bytes
*.
*
*.*
*.*

Visual Leak Detector detected 1711 memory leaks (249641 bytes).
Largest number used: 5007046 bytes.
Total allocations: 5257643 bytes.
Visual Leak Detector is now exiting.
Why it only shows with Hdf5 ?

*Case 2:*
Tool : Memory Validator 64 bit
Leakage:

    63   :    0x000000013f5f1505 Segmentation.exe
 itk::ImageIOFactoryRegisterManager::ImageIOFactoryRegisterManager :
[d:\project\wip_april2013\code\itkexample\confidence
connected2d\bin\itkiofactoryregistration\*itkimageiofactoryregistermanager.h
* Line 31]
    26   :   public:
    27   :   ImageIOFactoryRegisterManager(void (*list[])(void))
    28   :     {
    29   :     for(;*list; ++list)
    30   :       {
    31   :       (*list)();
    32   :       }
    33   :     }
    34   : };
    35   :
    36   :

like that


Same i tried with VTK it doesn't show any leakage.

Please correct me if my observation is wrong.I
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130704/25b33472/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MemoryLeakage.png
Type: image/png
Size: 193837 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130704/25b33472/attachment-0001.png>


More information about the Insight-users mailing list