summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/CommunicatorI.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2002-10-04 23:11:47 +0000
committerMark Spruiell <mes@zeroc.com>2002-10-04 23:11:47 +0000
commit742052e96af8671880a2b7c3ac0ec2f30eaea00a (patch)
treeba33b6765b1508c6be310f8b289f8e8a3fddcd1d /cpp/src/Ice/CommunicatorI.cpp
parentbug fix (diff)
downloadice-742052e96af8671880a2b7c3ac0ec2f30eaea00a.tar.bz2
ice-742052e96af8671880a2b7c3ac0ec2f30eaea00a.tar.xz
ice-742052e96af8671880a2b7c3ac0ec2f30eaea00a.zip
delay shared library unloading
Diffstat (limited to 'cpp/src/Ice/CommunicatorI.cpp')
-rw-r--r--cpp/src/Ice/CommunicatorI.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/Ice/CommunicatorI.cpp b/cpp/src/Ice/CommunicatorI.cpp
index 2d4b7794441..63f4340514c 100644
--- a/cpp/src/Ice/CommunicatorI.cpp
+++ b/cpp/src/Ice/CommunicatorI.cpp
@@ -272,6 +272,13 @@ Ice::CommunicatorI::CommunicatorI(int& argc, char* argv[], const PropertiesPtr&
try
{
_instance = new Instance(this, argc, argv, properties);
+
+ //
+ // Keep a reference to the dynamic library list to ensure
+ // the libraries are not unloaded until this Communicator's
+ // destructor is invoked.
+ //
+ _dynamicLibraryList = _instance->dynamicLibraryList();
}
catch(...)
{