memory leak problem in dcmtk 3.5.4

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
ielab
Posts: 3
Joined: Wed, 2006-05-03, 13:07

memory leak problem in dcmtk 3.5.4

#1 Post by ielab »

dcmfileformat dcmfile and dcmdataset is employed in my project,and the lib "zlib_d.lib netapi32.lib wsock32.lib ofstd.lib dcmdata.lib dcmimgle.lib dcmimage.lib odbc32.lib odbccp32.lib" is added, when I build it and run in debug mode in VC, close it immediately with nothing done ,the memory leaks problem is detected as follow:

Detected memory leaks!
Dumping objects ->
{65} normal block at 0x00EE2558, 4 bytes long.
Data: <H$ > 48 24 EE 00
{56} normal block at 0x00EE24B8, 24 bytes long.
Data: < > A8 EF 8A 00 01 00 00 00 00 00 00 00 00 00 00 00
{53} normal block at 0x00EE5FA0, 4 bytes long.
Data: <H$ > 48 24 EE 00
Object dump complete.
what is more, when I deltete the ralated code, and build it again, the problem also exists, I think it does thing with one of the libs, and I 'm puzzeld now.
DFG

Markus Sabin
Posts: 99
Joined: Tue, 2005-07-12, 13:50
Location: Erlangen, Germany

#2 Post by Markus Sabin »

Hm, this does not sound like a dcmtk-related problem. Generally, a cool tool named visual leak detector can help you to find memory leaks. If you want to try it, look here:

http://www.codeproject.com/tools/visualleakdetector.asp

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1445
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#3 Post by Marco Eichelberg »

It is quite normal that linking against some system libraries (such as libc) causes a leak detector to report certain static memory leaks. These are buffers allocated within the library to return results of system functions such as gethostname, localtime, and all the other system functions that have a thread-safe counterpart ending with suffix _r in the Posix world.

guelfobianco
Posts: 4
Joined: Wed, 2005-02-09, 15:41

#4 Post by guelfobianco »

Hi All,
I have the same problems of memory leak. Which is a possible solution? (I don't link libc.lib).

Thx
with WindowsXP & Visual Studio .Net 2003
-------------------------------------------------
Bologna University - Italy

vyrus
Posts: 19
Joined: Sat, 2006-01-21, 22:14

#5 Post by vyrus »

I had good experience using Memory Validator as my memory checking tool. I didnot find any memory links related to DCMTK

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest