Forgot that the form was freakin' Modal. Took it off Modal and (poofda!) it started working as I expected.
Serves me right for just 'cutting down' an existing app.
>>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
>
>What does a trace show you. What happens in GotFocus? What code runs after that?
>
>Try scattering a bunch of DEBUGOUTs in the code along with turning on the event tracker to see exactly what's happening. If that doesn't give you the necessary clue, try running with coverage on and walk through the coverage log to see exactly what's happening.
>
>Tamar
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place