[Dcmlib] R: Bug in gdcm?

Lazzarato Dr. Gianni lazzadrgi at libero.it
Fri Mar 16 14:26:08 CET 2007


Perfect, I'm sending to you the code.
Ciao


-----Messaggio originale-----
Da: luca.picello at libero.it [mailto:luca.picello at libero.it] 
Inviato: venerdì 16 marzo 2007 12.27
A: lazzadrgi; dcmlib
Oggetto: Re: [Dcmlib] Bug in gdcm?

hello guys,
i'm still in the list but have not Internet at home anymore ;-)
i'll take a look as soon as possible however probably there is a small
memory leak in gdcm.

gianni: there have to be submitted the exact release of your source code and
the source of the test application to the bug-hunters to reproduce it...






> 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
> >
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
> 


------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://infostrada.it






More information about the Dcmlib mailing list