>I have found that if I have a form on the screen, and then I bring up another VFP window such as a text file or .PRG file, then go directly back to the command window, _Screen.Activeform will not work.
But, in my case, I have this error while my application is running. The good point is that we never got it when running the EXE.