# Thread-safe String and MemoryBlock functions

**URL:** <https://forum.xojo.com/t/thread-safe-string-and-memoryblock-functions/89227>\
**Category:** General\
**Created:** [November 17, 2026, 10:29pm UTC](https://forum.xojo.com/t/thread-safe-string-and-memoryblock-functions/89227 "2026-11-17T22:29:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carsten\_Belling1](https://forum.xojo.com/user_avatar/forum.xojo.com/carsten_belling1/32/15930_2.png) [@Carsten\_Belling1](https://forum.xojo.com/u/Carsten_Belling1)\
**Post date:** [November 17, 2026, 10:29pm UTC](https://forum.xojo.com/t/thread-safe-string-and-memoryblock-functions/89227/1 "2026-11-17T22:29:27Z")

</div>

I ran into problems with preemtive threads that manipulates chunks of strings and created an issue [**Please make String functions thread-safe**](https://tracker.xojo.com/xojoinc/xojo/-/work_items/82309). I’ve attached a little project that demonstrates the issue.

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [November 17, 2026, 11:35pm UTC](https://forum.xojo.com/t/thread-safe-string-and-memoryblock-functions/89227/2 "2026-11-17T23:35:03Z")

</div>

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.
