<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=500011202-13112004>Hi,
Mathieu,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=500011202-13112004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=500011202-13112004>I have tried to use
gdcm. but after i exit my MFC appliaction. There are tons of memory leak about
DICOM reading.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=500011202-13112004>It's very difficult
to track this bug because it's dynamic...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=500011202-13112004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=500011202-13112004>However, i found
something is not correct with gdcm. the destructor of gdcm::ElementSet is not
vritual.(it's bad)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=500011202-13112004>gdcm::Document is
derived from gdcm::ElementSet. it's destructor is virtual. the base class
gdcm::DocEntry also has </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=500011202-13112004>a vritual
destructor. This will bring unpredictable result as i read from <A
href="http://www.codersource.net/cpp_virtual_destructors.html">http://www.codersource.net/cpp_virtual_destructors.html</A></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=500011202-13112004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=500011202-13112004>By the way, in the
file gdcmutil.cxx. the function has called va_start, but there is no va_end to
set args to 0.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=500011202-13112004>I think that
it maybe a potential bug.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=500011202-13112004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=500011202-13112004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=500011202-13112004>thx,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=500011202-13112004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=500011202-13112004>Dennis </SPAN></FONT></DIV></BODY></HTML>