>>>Hey Guys
>>>
>>>This is an issue I usually don't have a problem with, but here it is
>>>
>>>Application starts,
>>>VFP desktop hidden
>>>Main form fires off
>>>Main form issues Clear Events and closes
>>>
>>>(Update)
>>>After the Clear Events is issued and before the form closes, it goes through the GotFocus of a textbox (the only interactive object on the screen)
>>>
>>>VFP desktop doesn't Clear - get 'cannot close FoxPro' window
>>>
>>>Whatheheck?
>>>
>>>Dorris
>>
>>What do you have in the ON SHUTDOWN routine?
>>
>>Also, where do you have READ EVENTS code?
>
> I've never put anything in the ON SHUTDOWN even - so nothing
>The Read Events is issued from the main program right after the DO FORM myform
Try adding
ON SHUTDOWN QUIT before Read Events
and then
ON SHUTDOWN after.
If it's not broken, fix it until it is.
My Blog