Try putting a
Application.Visible = .T.
in the form's destroy.
Good luck
>>>I've got a couple of objects I have to destroy in my modeless top level form when it closes.
>>>
>>>It appears that the form is not destroyed until I eventually close the main VFP window in the application - even when I directly call the form's DESTROY() in the QueryUnload() event. I think I have also tried calling the DESTROY() of the particular object on the form in the QueryUnload().
>>>
>>>Is that correct? Are calls to the form's DESTROY suspended until the app closes? Should I put the cleanup code into a custom method instead, so it can be called by the QueryUnload?
>>>
>>>Also - what happens to the form if it's not destroyed - is it just invisible?
>>>
>>>TIA
>>
>>Michael,
>>It's not correct. Probably you have a dangling object reference that prevents the form being destroyed.
>>Cetin
>
>Thanks for the response.
>
>I set them to null in the object's destroy... but the WAIT WINDOW at the beginning of the object's DESTROY is not even popping up, so I don't think it's even firing. Perhaps it's the form itself with a dangling reference... Let me track that down.
>
>Let me also check my bindevents for that object...