Look like it is a multi thread issue. I locked the thread to prevent multi access to the stringBuilder at the same time.
public void AddString(string s)
{
lock(this.LockObject)
{
StringBuilder.AppendLine(s);
}
}
Look like it is a multi thread issue. I locked the thread to prevent multi access to the stringBuilder at the same time.
public void AddString(string s)
{
lock(this.LockObject)
{
StringBuilder.AppendLine(s);
}
}