You really should have started with that. We shouldn’t have to wildly guess at what you’re doing. Have you searched for the other threads on this issue? There is a known issue that seems to be related to MySQL.
I am also aware of another issue where Preemptive Threads are suspected to be the cause, but that one is much earlier in the investigation phase and I don’t know of public details on that one.
Next time, start with telling us your issue - not how you think you can fix it. Because yes, some of us are extremely educated in Xojo, even if we didn’t go to Oxford.