Can we See your code. Maybe your code is causing the UI to freeze. Maybe some Routine is running in the background and cannot continue another Statement to run until it finish.