[Dcmlib] Bug in gdcm?

Jean-Pierre Roux jpr at creatis.insa-lyon.fr
Wed Mar 14 11:43:28 CET 2007


Lazzarato Dr. Gianni wrote:
>
> Hi gdcm developers,
>
>                  
>
>                   I found a problem compiling a little test app with 
> vtk and gdcm.
>
> I'm using borland c++ 2006 with Codeguard support and I'm triing to 
> compile the vtkgdcmserieviewer example
>
> from gdcm source.
>
> Everything is ok, but this portion of code cause a memory leak exiting 
> the application:
>
Hi, Giani.
Thank you for reporting the bug.
I ran again vtkgdcmserieviewer on my own data (on Linux + gcc :-(  ), 
and I cannot reproduce the bug, and I don't have acces to any Borland 
c++ compiler.

Could you send us an url link to a sample of your data, so we could 
check if the problem comes from a gdcm bug in the way we read them, or 
from the way vtkgdcmserieviewer precesses them.
Thx

--> Luca Picello : are you still on dcmlib mailing list?
You work with Borland C++, don't you?
Did you ever experience troubles with vtkgdcmserieviewer?

Thx for your help
JP
>
>  
>
>  
>
> /   gdcm::SerieHelper *sh = gdcm::SerieHelper::New();/
>
> /   sh->SetDirectory(dir.c_str());/
>
> /   gdcm::FileList *l = sh->GetFirstSingleSerieUIDFileSet();/
>
>  
>
> */   sh->OrderFileList(l);  // <--------  this line cause memory leak 
> exiting test application/*
>
>  
>
>    if I remove the above line cleanup is ok and no resource leaks are 
> reported exiting the app,
>
>    but about the ordering?
>
>  
>
>  
>
> Codeguard error message output is:
>
>  
>
>  
>
> /14/03/2007 4.05.20 started a CodeGuard(tm) process: 
> Project_vtkDemo_Test.exe(4344) /
>
> /Resource leak in process: Project_vtkDemo_Test.exe(4344)  - 
> d:\gdcm\src\gdcmDictEntry.cxx#72/
>
> /  The object (0x24F3F20) was never deleted/
>
> /  The object (0x024F3F20) [size: 104 bytes] was created with new/
>
> /    0x018AE767 - Z:\gdcm2007\src\gdcmDictEntry.cxx#72/
>
> /    0x019008DB - Z:\gdcm_bin\src\gdcmDefaultDicts.cxx#2944/
>
> /    0x018AA0CC - Z:\gdcm2007\src\gdcmDict.cxx#56/
>
> /    0x018B278C - Z:\gdcm2007\src\gdcmDict.h#55/
>
> /    0x018B253B - Z:\gdcm2007\src\gdcmDictSet.cxx#40/
>
> /    0x018D8681 - Z:\gdcm2007\src\gdcmDictSet.h#48/
>
>  
>
>  
>
> do you have some suggestion about this?
>
>  
>
> thank you very much for your kind attention.
>
>  
>
>  
>
> Dr. Gianni Lazzarato
>



More information about the Dcmlib mailing list