summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/StreamI.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2008-11-05 12:21:24 -0330
committerDwayne Boone <dwayne@zeroc.com>2008-11-05 12:21:24 -0330
commite67bc9d134e2727e1da51729665c672904daf6c0 (patch)
tree784284319746e5e4a807c469c50ed5c8b671193d /cpp/src/Ice/StreamI.cpp
parentMerge branch 'R3_3_branch' (diff)
parentBug 3386 - slice errors with wrong line numbers (diff)
downloadice-e67bc9d134e2727e1da51729665c672904daf6c0.tar.bz2
ice-e67bc9d134e2727e1da51729665c672904daf6c0.tar.xz
ice-e67bc9d134e2727e1da51729665c672904daf6c0.zip
Merge branch 'R3_3_branch'
Diffstat (limited to 'cpp/src/Ice/StreamI.cpp')
-rw-r--r--cpp/src/Ice/StreamI.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/Ice/StreamI.cpp b/cpp/src/Ice/StreamI.cpp
index 26ecc8acb19..9a6d4cfca04 100644
--- a/cpp/src/Ice/StreamI.cpp
+++ b/cpp/src/Ice/StreamI.cpp
@@ -698,7 +698,14 @@ Ice::UserExceptionWriter::~UserExceptionWriter() throw()
void
Ice::UserExceptionWriter::__write(BasicStream* os) const
{
- OutputStreamPtr stream = new OutputStreamI(_communicator, os);
+ OutputStreamI* stream = reinterpret_cast<OutputStreamI*>(os->closure());
+ if(!stream)
+ {
+ //
+ // Required for IcePy usage
+ //
+ stream = new OutputStreamI(_communicator, os);
+ }
write(stream);
}