Well, just looked up TStream.WriteString.
It simply creates a new variable, calls String.ToCString, and then memfree's the temporary byte pointer.
It simply creates a new variable, calls String.ToCString, and then memfree's the temporary byte pointer.