diff OrthancServer/OrthancInitialization.cpp @ 1927:b60f27664b8f

simplification in FromDcmtkBridge
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Mar 2016 13:31:56 +0100
parents b1291df2f780
children 84c7eaeb5244
line wrap: on
line diff
--- a/OrthancServer/OrthancInitialization.cpp	Wed Mar 09 09:53:41 2016 +0100
+++ b/OrthancServer/OrthancInitialization.cpp	Mon Mar 21 13:31:56 2016 +0100
@@ -69,6 +69,10 @@
 #endif
 
 
+#include <dcmtk/dcmnet/dul.h>
+
+
+
 namespace Orthanc
 {
   static boost::recursive_mutex globalMutex_;
@@ -427,6 +431,9 @@
 #endif
 
     fontRegistry_.AddFromResource(EmbeddedResources::FONT_UBUNTU_MONO_BOLD_16);
+
+    /* Disable "gethostbyaddr" (which results in memory leaks) and use raw IP addresses */
+    dcmDisableGethostbyaddr.set(OFTrue);
   }