Error while Loading of DICOMDICT file

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Arunodaya S
Posts: 19
Joined: Mon, 2016-09-26, 14:08

Error while Loading of DICOMDICT file

#1 Post by Arunodaya S »

Hi,

When i try to run any of the DCMTK application in the command line in debug mode it throws an error that "it cannot open the file : C" but still loads the file ignoring the "C" drive.

The error message is pasted below :

C:\Users\Test>storescp -v -d 5678
D: $dcmtk: storescp v3.6.1 2016-06-30 $
D:
E: DcmDataDictionary: Cannot open file: C
D: DcmDataDictionary: Loading file: \Program Files (x86)\Test\DCMTK\share\dcmtk\dicom.dic

D: Timeout while waiting for incoming network data
D: Timeout while waiting for incoming network data
D: Timeout while waiting for incoming network data

Below is the Value of the DCMDICTPATH set to

C:\Users\Test>echo %DCMDICTPATH%
C:\Program Files (x86)\Test\DCMTK\share\dcmtk\dicom.dic
C:\Users\Test>

Any help on this issue would be helpful.
Last edited by Arunodaya S on Tue, 2017-07-04, 06:01, edited 1 time in total.

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Error while Loading of DICOMDICT file

#2 Post by J. Riesmeier »

Since the paths are different (value of environment variable and debug output of storescp) my first guess would be that the space character in the "C:\Program Files (x86)\Test\..." path requires quotation marks around the value.

By the way, on Windows systems the DCMTK tools by default use a builtin data dictionary, so there is no need to load an externally stored file unless you want to modify/add something.

Arunodaya S
Posts: 19
Joined: Mon, 2016-09-26, 14:08

Re: Error while Loading of DICOMDICT file

#3 Post by Arunodaya S »

Hi,

I have changed the environmental path accordingly. But still the same error is repeating.


C:\Users\Test>storescp -v -d 5678
D: $dcmtk: storescp v3.6.1 2016-06-30 $
D:
E: DcmDataDictionary: Cannot open file: "C
E: DcmDataDictionary: Cannot open file: \Program Files (x86)\Test\DCMTK\share\dcmtk\dicom.dic"

C:\Users\Test>echo %DCMDICTPATH%
"C:\Program Files (x86)\Test\DCMTK\share\dcmtk\dicom.dic"

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Error while Loading of DICOMDICT file

#4 Post by J. Riesmeier »

Which operating system and which command shell do you use? I tried a recent DCMTK development version (from this year) with Windows 7 and "cmd.exe" and it works as expected, even if there are spaces in the path name. Using this environment, the quotation marks are no required (i.e. they should be omitted).

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: Error while Loading of DICOMDICT file

#5 Post by Jan Schlamelcher »

It seems to me that your DCMTK falsely uses ':' as the path separator although it should be ';' on Windows. Are you perhaps using MinGW? It was like this for MinGW until I recently fixed it.

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Error while Loading of DICOMDICT file

#6 Post by J. Riesmeier »

Jan, you mean this commit? Seemed to be an issue for CMake configurations only, right? Autoconf should always have worked since this was tested for the previous releases of the DCMTK.

Arunodaya S
Posts: 19
Joined: Mon, 2016-09-26, 14:08

Re: Error while Loading of DICOMDICT file

#7 Post by Arunodaya S »

Hi,

Yes we are using MinGW.

The patch file didn't work directly. However we took the input from the files and changed the corresponding CMake files. It was clean and things are happening as expected.

As we can see, this fix is applicable for all versions of dcmtk, if the corresponding files are changed accordingly as per the patch file above. We checked with 3.6.0 as well and it was successful.

Thanks for the support.

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: Error while Loading of DICOMDICT file

#8 Post by Jan Schlamelcher »

J. Riesmeier wrote:Jan, you mean this commit? Seemed to be an issue for CMake configurations only, right? Autoconf should always have worked since this was tested for the previous releases of the DCMTK.
I don't think Autoconf ever worked for MinGW...

Post Reply

Who is online

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