Re: stl string memory grow
Quote:
Originally Posted by
lateteatutu
Hi Everybody,
I have a problem with string stl from visual studio (2005, 2008 and 2010). In my program, memory grows up to 1Gb.
I create a little program that reproduce that:
Go back and re-edit your post to use code tags. The code you posted is unformatted and almost unreadable wihtout code tags.
You have three strings, strCtn, str, and strTemp. Which one are you referring to?
Secondly, the string is destroyed once it goes out of scope. Once the string is out of scope, anything to do with memory is dependent on the heap manager and OS, and has nothing to do with std::string.
Regards,
Paul McKenzie
Re: stl string memory grow
Define what you mean by "see memory up". You cannot reliably use the Task Manager to check memory consumption, FYI. It gives you only an upper bound.