dump2dcm - missing fclose() ?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
ecoto
Posts: 14
Joined: Thu, 2006-03-23, 13:34

dump2dcm - missing fclose() ?

#1 Post by ecoto »

Hi all,

I'm using the dump2dcm source code to internally create a dcm file in a cache folder, which is cleared when the application exists. On exit, the application crashes when trying to clear the cache folder.

It seems to me, that at the end of the main() in the dump2dcm source code, there is a "fclose(dumpfile);" missing which should complement the "FILE * dumpfile = fopen(ifname, "r");" in previous lines.

This small change fixed my problem. The instruction was missing in version 3.5.3 and it is still missing in 3.5.4.

Maybe it depends on the compiler ?. I'm using MS Visual Studio '03.

Sorry if this comment was post before, I couldn't find it with the search.

Regards,

ecoto

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

Thank you for the bug report. We will fix this issue with the next release.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest