Thread-safe String and MemoryBlock functions

I ran into problems with preemtive threads that manipulates chunks of strings and created an issue Please make String functions thread-safe. I’ve attached a little project that demonstrates the issue.

What are the errors. I use strings with threads both preemptively And cooperatively. I’ve not had problems. Are you accessing anything outside of the thread. I’m not at my machine now so I can’t check your example.