diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-12-15 18:25:33 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-12-15 18:25:33 +0100 |
commit | 847b96ee887e245c2c78274769b035528784d772 (patch) | |
tree | 9771f44d242e475ad7ef02d3d6ed0712251a7ed3 /py/modules/IcePy/Operation.cpp | |
parent | more INSTALL/README edits (diff) | |
download | ice-847b96ee887e245c2c78274769b035528784d772.tar.bz2 ice-847b96ee887e245c2c78274769b035528784d772.tar.xz ice-847b96ee887e245c2c78274769b035528784d772.zip |
Fixes for 4471 - more Ice stream fixes
Diffstat (limited to 'py/modules/IcePy/Operation.cpp')
-rw-r--r-- | py/modules/IcePy/Operation.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/py/modules/IcePy/Operation.cpp b/py/modules/IcePy/Operation.cpp index 171abbe2f2e..a3c5a08697b 100644 --- a/py/modules/IcePy/Operation.cpp +++ b/py/modules/IcePy/Operation.cpp @@ -957,9 +957,11 @@ IcePy::TypedInvocation::unmarshalException(const pair<const Ice::Byte*, const Ic Ice::InputStreamPtr is = Ice::createInputStream(_communicator, bytes); - is->readBool(); // usesClasses + bool usesClasses; + is->read(usesClasses); - string id = is->readString(); + string id; + is->read(id); const string origId = id; while(!id.empty()) @@ -999,7 +1001,7 @@ IcePy::TypedInvocation::unmarshalException(const pair<const Ice::Byte*, const Ic try { - id = is->readString(); // Read type id for next slice. + is->read(id); // Read type id for next slice. } catch(Ice::UnmarshalOutOfBoundsException& ex) { @@ -2012,7 +2014,7 @@ IcePy::TypedUpcall::exception(PyException& ex) { Ice::OutputStreamPtr os = Ice::createOutputStream(_communicator); - os->writeBool(info->usesClasses); + os->write(info->usesClasses); ObjectMap objectMap; info->marshal(ex.ex.get(), os, &objectMap); |