[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hang in ostrstream::operator<<(int n)
From: |
Geoff Alexander |
Subject: |
Re: hang in ostrstream::operator<<(int n) |
Date: |
15 Jan 2002 08:38:28 -0800 |
address@hidden (?iso-8859-1?Q?Andr?P?itz?) wrote in message
news:<address@hidden>...
> You have to freeze(0) the stream unless you want to leak (if I am not
> mistaken). But that's probably not the problem.
Thanks for the information. I wasn't aware of the need to call
freeze(0).
> Looks ok. But maybe you should try ostringstream from <sstream> instead
> of ostrstream as workaround. They don't have that "leak issue" and
> strstreams are deprecated anyway. Maybe your problem magically goes
> away....
I'm aware of deprecation of ostrstream and the standard ostringstream;
however, I don't think gcc 2.95.2 has ostringstream, as there is no
sstream in /usr/include/g++-include. I believe I need to upgrade to
gcc 3.0 to get ostringstream, which is currently not an option for us.
Geoff Alexander, Ph.D.
919/254-5216 T/L 444-5216
CMVC95 WebDAV Development
IBM Corporation
RTP, NC