summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2003-01-15 17:09:27 +0000
committerMarc Laukien <marc@zeroc.com>2003-01-15 17:09:27 +0000
commit55dd48735c59cb92e8b5789665396959053723ed (patch)
tree24207c670c660a5ab327b9c776308408e84993a9 /cpp/src
parentfix (diff)
downloadice-55dd48735c59cb92e8b5789665396959053723ed.tar.bz2
ice-55dd48735c59cb92e8b5789665396959053723ed.tar.xz
ice-55dd48735c59cb92e8b5789665396959053723ed.zip
fixes
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/Proxy.cpp25
-rw-r--r--cpp/src/IceBox/ServiceManagerI.cpp4
2 files changed, 26 insertions, 3 deletions
diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp
index 711d4a37427..c7452e43341 100644
--- a/cpp/src/Ice/Proxy.cpp
+++ b/cpp/src/Ice/Proxy.cpp
@@ -595,6 +595,9 @@ IceProxy::Ice::Object::__copyFrom(const ObjectPrx& from)
// called upon initialization.
//
+ assert(!_reference);
+ assert(!_delegate);
+
_reference = ref;
if(delegateD)
@@ -761,6 +764,10 @@ IceProxy::Ice::Object::setup(const ReferencePtr& ref)
// No need to synchronize "*this", as this operation is only
// called upon initialization.
//
+
+ assert(!_reference);
+ assert(!_delegate);
+
_reference = ref;
}
@@ -897,18 +904,23 @@ IceDelegateM::Ice::Object::__copyFrom(const ::IceInternal::Handle< ::IceDelegate
// called upon initialization.
//
- __reference = from->__reference;
+ assert(!__reference);
+ assert(!__connection);
if(from->__connection)
{
from->__connection->incProxyCount();
}
+// Can not happen, __connection must be null.
+/*
if(__connection)
{
__connection->decProxyCount();
}
+*/
+ __reference = from->__reference;
__connection = from->__connection;
}
@@ -919,6 +931,10 @@ IceDelegateM::Ice::Object::setup(const ReferencePtr& ref)
// No need to synchronize "*this", as this operation is only
// called upon initialization.
//
+
+ assert(!__reference);
+ assert(!__connection);
+
__reference = ref;
if(__reference->reverseAdapter)
@@ -1201,6 +1217,9 @@ IceDelegateD::Ice::Object::__copyFrom(const ::IceInternal::Handle< ::IceDelegate
// called upon initialization.
//
+ assert(!__reference);
+ assert(!__adapter);
+
__reference = from->__reference;
__adapter = from->__adapter;
}
@@ -1224,6 +1243,10 @@ IceDelegateD::Ice::Object::setup(const ReferencePtr& ref, const ObjectAdapterPtr
// No need to synchronize "*this", as this operation is only
// called upon initialization.
//
+
+ assert(!__reference);
+ assert(!__adapter);
+
__reference = ref;
__adapter = adapter;
}
diff --git a/cpp/src/IceBox/ServiceManagerI.cpp b/cpp/src/IceBox/ServiceManagerI.cpp
index 2356eba5eb8..f9bce94e7e1 100644
--- a/cpp/src/IceBox/ServiceManagerI.cpp
+++ b/cpp/src/IceBox/ServiceManagerI.cpp
@@ -353,7 +353,7 @@ IceBox::ServiceManagerI::stop(const string& service)
ServiceInfo info = r->second;
_services.erase(r);
- std::auto_ptr< FailureException> failureEx;
+ std::auto_ptr<FailureException> failureEx;
try
{
@@ -392,7 +392,7 @@ IceBox::ServiceManagerI::stop(const string& service)
//
// Release the service, the service communicator and then the
- // library. The order is important, the service must be release
+ // library. The order is important, the service must be released
// before destroying the communicator so that the communicator
// leak detector doesn't report potential leaks, and the
// communicator must be destroyed before the library is released