John
If the TreeView control is last on the form, none of the other controls go away either. If its first, the rest all go away. This makes sense since the destruction occurs in reverse order...
>Fred ----
>
>Hmmmm....what does debug window show when this occurs? And are all the other controls being cleared out?
>
>
>>
>>Yes, I've tried to explicitly relese the TreeView control in the forms QueryUnLoad, Destroy, UnLoad and any other place that I could think of. It just doesn't always go away!
>>
>>>Have you tried to explicitly release the treeview in the QueryUnload event of the form?
>>>
>>>>VFP5a with SP3
>>>>
>>>>I have a form with a TreeView Control on it. About 20% of the time, when I try to close the form, it will not release. I have no outstanding object references in the form, it just won't release. I've tried TreeView controls both with and without ImageList controls. It seems that the TreeView control just won't release and that's what keeps the form from releasing. It does go away with a CLEAR ALL.
>>>>
>>>>Any tips on what I should be looking for to get around this?