On Mon, Feb 04, 2002 at 05:33:34PM +0000, masaoud@pspl.co.in wrote: > finalstr[ i ] = '1'; A std::string doesn't grow when using operator[], you are accessing memory behond the allocation of the string. -- Carlo Wood <carlo@alinoe.com>