wstring.h problem in reintializing the string

As per this

I did implement an example where in it appears that the only way to remove all the characters in the string to reinstialize the string is to make it equal to an empty char as

if (inString.length() < maxLength) {
    inString.append(inChar);
  } 
  else {
    // empty the string by setting it equal to the inoming char:
    [b][color=#0000ff]inString = inChar;[/color][/b]
  }

but I did that repeatedly the microcontroller stops responding and again I have to dump the hex in it.Could any say how to solve this problem and thus reinitialize the string to NULL.

There's a memory leak in WString that needs to be fixed.

Some details are here...
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1241618944/6#6