Is UniMainModule.EnableSynchronousOperations = True? To able to use blocking windows, you must set it true otherwise, you will get error.