Error while Loading of DICOMDICT file
Moderator: Moderator Team
-
- Posts: 19
- Joined: Mon, 2016-09-26, 14:08
Error while Loading of DICOMDICT file
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.
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.
-
- DCMTK Developer
- Posts: 2503
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Error while Loading of DICOMDICT file
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.
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.
-
- Posts: 19
- Joined: Mon, 2016-09-26, 14:08
Re: Error while Loading of DICOMDICT file
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"
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"
-
- DCMTK Developer
- Posts: 2503
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Error while Loading of DICOMDICT file
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).
-
- OFFIS DICOM Team
- Posts: 318
- Joined: Mon, 2014-03-03, 09:51
- Location: Oldenburg, Germany
Re: Error while Loading of DICOMDICT file
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.
-
- DCMTK Developer
- Posts: 2503
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Error while Loading of DICOMDICT file
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.
-
- Posts: 19
- Joined: Mon, 2016-09-26, 14:08
Re: Error while Loading of DICOMDICT file
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.
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.
-
- OFFIS DICOM Team
- Posts: 318
- Joined: Mon, 2014-03-03, 09:51
- Location: Oldenburg, Germany
Re: Error while Loading of DICOMDICT file
I don't think Autoconf ever worked for MinGW...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.
Who is online
Users browsing this forum: Google [Bot] and 1 guest