Advertisement
Hello, all ...
I'm finding that MSVC.NET 2005's stringstream (and o / i variants) leak memory when used as parameters (passing them by reference to other methods). I'm facing the possibility of rewriting all of our code that uses them to use something else (the few that i've replaced with -- ugh -- const char *, have resulted in less leakage) ... has anyone else seen this? Also, our code has to be portable across Win32 and Mac OSX (*nix), so we would like to keep platform-specific solutions to a minimum, so we're all about using the C++ library, STL, Boost, stuff like that.
Grrrr.
Regards,
John
Falling You - exploring the beauty of voice and sound
www.fallingyou.com
Advertisement
Advertisement
-
Re: MSVC.NET 2005 and std::stringstream ... grrrr
Mon, October 16, 2006 - 10:28 PMThis sounds like a major bug to be in MSVC. Are you 100% sure this is the case? -
-
Re: MSVC.NET 2005 and std::stringstream ... grrrr
Tue, October 17, 2006 - 8:20 AMYes unfortunately it is true. Fix is slated for VS2005 SP1 - theres a beta version available now through MS, I dont know if a QFE is released.
see forums.microsoft.com/MSDN/ShowPost.aspx for some more info. -
-
Re: MSVC.NET 2005 and std::stringstream ... grrrr
Tue, October 17, 2006 - 12:31 PMThat's bad. Thanks for the info.
-
-
-
Re: MSVC.NET 2005 and std::stringstream ... grrrr
Tue, October 17, 2006 - 12:32 PMMaybe just live with it until the patch comes out? -
-
Re: MSVC.NET 2005 and std::stringstream ... grrrr
Tue, October 17, 2006 - 12:43 PMJust write a new stringstream, a "StringStream2", with just the functionality you need.
-
-
Re: MSVC.NET 2005 and std::stringstream ... grrrr
Wed, October 18, 2006 - 4:58 PMJohn -
If you feel so inclined you can register and download a beta of service pack 1 for Visual Studio. Theres a little more info in somas' blog here: blogs.msdn.com/somasegar/...772250.aspx
On a side note, I do work at MS in the same building as the VS folks and even though its not my bug you are hitting right now I always feel personally responsible when I hear of fellow devs, and friends of mine who hit problems with our software... I apologize for your troubles and if theres anything at all (even speaking to the owner of stringstream!) let me know.
-Jason -
-
Re: MSVC.NET 2005 and std::stringstream ... grrrr
Wed, October 18, 2006 - 4:59 PManything i can do that is.... (once I get this typing thing down!) :)
-