diff options
author | Mark Spruiell <mes@zeroc.com> | 2002-10-04 23:11:47 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2002-10-04 23:11:47 +0000 |
commit | 742052e96af8671880a2b7c3ac0ec2f30eaea00a (patch) | |
tree | ba33b6765b1508c6be310f8b289f8e8a3fddcd1d /cpp/src/Ice/CommunicatorI.cpp | |
parent | bug fix (diff) | |
download | ice-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.cpp | 7 |
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(...) { |