# HG changeset patch # User Sebastien Jodogne # Date 1404227865 -7200 # Node ID 7cbcd580cd2124bcafe13f9527615d1c2c753996 # Parent 9ea31f01256125c5b73313f76d8f3438a723a4c8 fix diff -r 9ea31f012561 -r 7cbcd580cd21 OrthancCppClient/SharedLibrary/AUTOGENERATED/OrthancCppClient.h --- a/OrthancCppClient/SharedLibrary/AUTOGENERATED/OrthancCppClient.h Tue Jul 01 16:52:39 2014 +0200 +++ b/OrthancCppClient/SharedLibrary/AUTOGENERATED/OrthancCppClient.h Tue Jul 01 17:17:45 2014 +0200 @@ -302,7 +302,15 @@ { if (handle_ != LAAW_ORTHANC_CLIENT_HANDLE_NULL) { +#if 0 + /** + * Do not explicitly unload the shared library, as it might + * interfere with the destruction of static objects declared + * inside the library (e.g. this is the case of gflags that is + * internally used by googlelog). + **/ LAAW_ORTHANC_CLIENT_CLOSER(handle_); +#endif handle_ = LAAW_ORTHANC_CLIENT_HANDLE_NULL; } }