diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-11-29 17:58:31 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-11-29 17:58:31 -0800 |
commit | 632618cabce32e86a5c92e275a954117812f8a33 (patch) | |
tree | 3cd52cd5396e2db5f8782eedf6056cd880441bce /cpp/demo/Ice/invoke/Client.cpp | |
parent | minor edits to C# IceBox makefile (diff) | |
download | ice-632618cabce32e86a5c92e275a954117812f8a33.tar.bz2 ice-632618cabce32e86a5c92e275a954117812f8a33.tar.xz ice-632618cabce32e86a5c92e275a954117812f8a33.zip |
ICE-5055 - demo/Ice/invoke bugs
Diffstat (limited to 'cpp/demo/Ice/invoke/Client.cpp')
-rw-r--r-- | cpp/demo/Ice/invoke/Client.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/demo/Ice/invoke/Client.cpp b/cpp/demo/Ice/invoke/Client.cpp index feb41117819..722bdd199aa 100644 --- a/cpp/demo/Ice/invoke/Client.cpp +++ b/cpp/demo/Ice/invoke/Client.cpp @@ -233,8 +233,8 @@ InvokeClient::run(int argc, char* argv[]) c->s.name = "blue"; c->s.value = Demo::blue; out->write(c); - out->endEncapsulation(); out->writePendingObjects(); + out->endEncapsulation(); out->finished(inParams); // @@ -266,6 +266,7 @@ InvokeClient::run(int argc, char* argv[]) in->read(c); string str; in->read(str); + in->readPendingObjects(); in->endEncapsulation(); cout << "Got string `" << str << "' and class: s.name=" << c->s.name << ", s.value=" << c->s.value << endl; @@ -296,6 +297,7 @@ InvokeClient::run(int argc, char* argv[]) { cout << "Unknown user exception" << endl; } + in->endEncapsulation(); } else if(ch == 's') { |