summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/DynamicLibrary.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2003-10-15 17:31:30 +0000
committerMark Spruiell <mes@zeroc.com>2003-10-15 17:31:30 +0000
commit9d9d760b9b7215c0411774ca60e98159300d6948 (patch)
treecae1aeba3a5ebdd5377e6e1710f76670ba3956c6 /cpp/src/Ice/DynamicLibrary.cpp
parentFixed stupid typo (diff)
downloadice-9d9d760b9b7215c0411774ca60e98159300d6948.tar.bz2
ice-9d9d760b9b7215c0411774ca60e98159300d6948.tar.xz
ice-9d9d760b9b7215c0411774ca60e98159300d6948.zip
disable closing of shared libraries to avoid crashes during program exit
Diffstat (limited to 'cpp/src/Ice/DynamicLibrary.cpp')
-rw-r--r--cpp/src/Ice/DynamicLibrary.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/Ice/DynamicLibrary.cpp b/cpp/src/Ice/DynamicLibrary.cpp
index f69cf0c133b..0899c938142 100644
--- a/cpp/src/Ice/DynamicLibrary.cpp
+++ b/cpp/src/Ice/DynamicLibrary.cpp
@@ -36,6 +36,12 @@ IceInternal::DynamicLibrary::DynamicLibrary()
IceInternal::DynamicLibrary::~DynamicLibrary()
{
+ /*
+ * Closing the library here can cause a crash at program exit if
+ * the application holds references to library resources in global
+ * or static variables. Instead, we let the process discard the
+ * library.
+ *
if(_hnd != 0)
{
#ifdef _WIN32
@@ -44,6 +50,7 @@ IceInternal::DynamicLibrary::~DynamicLibrary()
dlclose(_hnd);
#endif
}
+ */
}
IceInternal::DynamicLibrary::symbol_type