Changeobject error if PanoramaX is not the top most application

I have a procedure that changes the location multiple objects in a form. If I move away from Panorama to a different application while the procedure is running, I get the following message:

Is this an expected behavior? A form window is still the top most window in PanoramaX.

If you use either magicwindow or magicformwindow before and after the changeobject statement it would allow the changes without generating errors even if Panorama X is not the currently active application or the form is not the front-most even if Panorama X is the active application. I use this method extensively in my Pan Audio Player file to keep the player display updated at all times.

Thank you Gary, magicwindow solved my issue.