Reading too much DCM files with Magick++ expected the error "Too many files opened", No problem with PNG files

Arnaud BARRÉ <[email protected]> Fri, 5 Jun 2009 23:05:07 +0200
Newsgroups gmane.comp.video.image-magick.bugs
Message-ID <[email protected]>
Because I can't use the ImageMagick convert command with my dicom file
(memory allocation error), I create a little program using ITK and
Magick++ to read my dicom file, extract each image,  and write them in
PGM file.

I use a file buffer between ITK and Magick++ to write PGM files.
However, if the file buffer is a DCM file, after 252 extracted images
I have the error "Too many files opened". If the file buffer is a PGN
file, there is no error in the program. I check the dcm.c and
especialy the ReadDCMImage function. I didn' find any CloseBlob
function. Is it normal?

I joined a ZIP file containing the program sources. It requires CMake,
ITK and ImageMagick. To use it, type: DCM2IMG input.dcm ouput%03i.pgm.
You need a big DCM file (more than 252 images with my system) to
repeat this bug with my program.

_______________________________________________
Magick-bugs mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-bugs