perl and binary executable dcmdump

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
kmui
Posts: 1
Joined: Tue, 2005-08-09, 20:11

perl and binary executable dcmdump

#1 Post by kmui »

Hello all

I'm running a perl script that calls dcmdump.exe. I'm doing this in cygwin. The dump has an error that says: "dcmdump: Error: Normal: Reading file:".

However the same command can be run successfully on command line. The syntax I use is:

$PATH/dcmdump.exe image.dimg

Does anyone have any good insight?

THanks

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

#2 Post by Marco Eichelberg »

The stupid message "Error: Normal: Reading file" is caused by the fact that on Windows platforms some system functions do not set the errno variable, whereas their Posix counterparts do. In a few cases DCMTK will produce error messages containing the text from strerror(errno) which in these cases contain useless information. Nevertheless in this case dcmdump just failed to open the file.

Post Reply

Who is online

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