comparison OrthancServer/DicomProtocol/DicomServer.cpp @ 298:6c4f6229aad7

fix in embedding dictionaries
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 17 Dec 2012 10:06:45 +0100
parents 4d7469f72a0b
children 8d3a0db39967
comparison
equal deleted inserted replaced
297:1c8384e8408c 298:6c4f6229aad7
74 void DicomServer::ServerThread(DicomServer* server) 74 void DicomServer::ServerThread(DicomServer* server)
75 { 75 {
76 /* Disable "gethostbyaddr" (which results in memory leaks) and use raw IP addresses */ 76 /* Disable "gethostbyaddr" (which results in memory leaks) and use raw IP addresses */
77 dcmDisableGethostbyaddr.set(OFTrue); 77 dcmDisableGethostbyaddr.set(OFTrue);
78 78
79 #if ORTHANC_STANDALONE == 1 79 #if DCMTK_USE_EMBEDDED_DICTIONARIES == 1
80 LOG(WARNING) << "Loading the embedded dictionaries"; 80 LOG(WARNING) << "Loading the embedded dictionaries";
81 dcmDataDict.clear(); 81 dcmDataDict.clear();
82 DcmDataDictionary& d = dcmDataDict.wrlock(); 82 DcmDataDictionary& d = dcmDataDict.wrlock();
83 LoadEmbeddedDictionary(d, EmbeddedResources::DICTIONARY_DICOM); 83 LoadEmbeddedDictionary(d, EmbeddedResources::DICTIONARY_DICOM);
84 LoadEmbeddedDictionary(d, EmbeddedResources::DICTIONARY_PRIVATE); 84 LoadEmbeddedDictionary(d, EmbeddedResources::DICTIONARY_PRIVATE);