diff options
Diffstat (limited to 'cpp/include/Ice/BasicStream.h')
-rw-r--r-- | cpp/include/Ice/BasicStream.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/include/Ice/BasicStream.h b/cpp/include/Ice/BasicStream.h index 3b529b9d977..47259c0f5c6 100644 --- a/cpp/include/Ice/BasicStream.h +++ b/cpp/include/Ice/BasicStream.h @@ -114,7 +114,13 @@ private: // Optimization. The instance may not be deleted while a // stack-allocated Incoming still holds it. // + // TODO: On WIN32 I get crashes with this optimization from time + // to time. I don't know why yet. +#ifdef WIN32 + InstancePtr _instance; +#else const InstancePtr& _instance; +#endif struct Encaps { |