Optimizing Xojo Code, Part 5: Threads and UserInterfaceUpdate

Originally published at: Optimizing Xojo Code, Part 5: Threads and UserInterfaceUpdate – Xojo Programming Blog

In Part 1, we learned why tight loops with DoEvents freeze your UI. Part 2 showed us Timer controls. Part 3 moved timers into code. Part 4 simplified scheduling with CallLater. But timers have a limit: they still run on the UI thread. If your background work is genuinely heavy (database queries, file I/O, complex calculations), a timer won’t save you. You need actual background…

1 Like