comparison OrthancServer/DicomProtocol/DicomServer.cpp @ 137:0e97abc7b950

fix of a bug in older versions of sqlite
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Oct 2012 13:13:14 +0200
parents fe180eae201d
children 4d7469f72a0b
comparison
equal deleted inserted replaced
136:fe180eae201d 137:0e97abc7b950
57 dcmDisableGethostbyaddr.set(OFTrue); 57 dcmDisableGethostbyaddr.set(OFTrue);
58 58
59 /* make sure data dictionary is loaded */ 59 /* make sure data dictionary is loaded */
60 if (!dcmDataDict.isDictionaryLoaded()) 60 if (!dcmDataDict.isDictionaryLoaded())
61 { 61 {
62 LOG(WARNING) << "no data dictionary loaded, check environment variable: " << DCM_DICT_ENVIRONMENT_VARIABLE; 62 LOG(ERROR) << "no data dictionary loaded, check environment variable: " << DCM_DICT_ENVIRONMENT_VARIABLE;
63 } 63 }
64 64
65 /* initialize network, i.e. create an instance of T_ASC_Network*. */ 65 /* initialize network, i.e. create an instance of T_ASC_Network*. */
66 T_ASC_Network *net; 66 T_ASC_Network *net;
67 OFCondition cond = ASC_initializeNetwork 67 OFCondition cond = ASC_initializeNetwork
70 { 70 {
71 LOG(ERROR) << "cannot create network: " << cond.text(); 71 LOG(ERROR) << "cannot create network: " << cond.text();
72 throw OrthancException("Cannot create network"); 72 throw OrthancException("Cannot create network");
73 } 73 }
74 74
75 LOG(WARNING) << "DICOM server started"; 75 LOG(INFO) << "DICOM server started";
76 76
77 server->started_ = true; 77 server->started_ = true;
78 78
79 while (server->continue_) 79 while (server->continue_)
80 { 80 {
93 IRunnableBySteps::RunUntilDone(*dispatcher); 93 IRunnableBySteps::RunUntilDone(*dispatcher);
94 } 94 }
95 } 95 }
96 } 96 }
97 97
98 LOG(WARNING) << "DICOM server stopping"; 98 LOG(INFO) << "DICOM server stopping";
99 99
100 /* drop the network, i.e. free memory of T_ASC_Network* structure. This call */ 100 /* drop the network, i.e. free memory of T_ASC_Network* structure. This call */
101 /* is the counterpart of ASC_initializeNetwork(...) which was called above. */ 101 /* is the counterpart of ASC_initializeNetwork(...) which was called above. */
102 cond = ASC_dropNetwork(&net); 102 cond = ASC_dropNetwork(&net);
103 if (cond.bad()) 103 if (cond.bad())