diff options
Diffstat (limited to 'cpp/demo/IceGrid/sessionActivation/Client.cpp')
-rw-r--r-- | cpp/demo/IceGrid/sessionActivation/Client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/demo/IceGrid/sessionActivation/Client.cpp b/cpp/demo/IceGrid/sessionActivation/Client.cpp index 7086b7cb90f..45a93fd812f 100644 --- a/cpp/demo/IceGrid/sessionActivation/Client.cpp +++ b/cpp/demo/IceGrid/sessionActivation/Client.cpp @@ -126,10 +126,10 @@ HelloClient::run(int argc, char* argv[]) SessionKeepAliveThreadPtr keepAlive = new SessionKeepAliveThread(session); keepAlive->start(); - HelloPrx hello = HelloPrx::uncheckedCast(communicator()->stringToProxy("hello"));; + HelloPrx hello; try { - session->allocateObjectById(hello->ice_getIdentity()); + hello = HelloPrx::checkedCast(session->allocateObjectById(communicator()->stringToIdentity("hello"))); } catch(const IceGrid::AllocationException& ex) { |