For Programmers: Free Programming Magazines  


Home > Archive > VC STL > February 2005 > String stl allocation problem ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author String stl allocation problem ?
Shlomo Kabaz

2005-02-14, 9:11 pm

My name is Shlomo Kabaz .

I wrote an application in vc7 that manipulate variable std::string .

After using the operator "+=" for a few time it seems the string got garbaged.
After a long check it seems that when size of string is above 16 the string
is
garbaged .

When i changed definition of "_BUF_SIZE" in "xstring" file the problem
was
solved
The "_BUF_SIZE" was 16 before .

What is wromg here , where is default dynamic allocation in STL .

Regards.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com