David,
No CreateObject() calls.
Hierarchy:
Form
Subclassed Container
subclassed Treeview
ImageList
?_screen.FormCount
?type('_screen.Forms[1]')
?type('_screen.Forms[2]')
As I said, the form closes normally. The formname is Null in the debugger
Seems like the objects added with Treeview.Nodes.Add() have a datasession property
Clear all releases the datasession, but that is an overkill imo
Been through the dangling object references and I always avoid them. I'd be surprised if there were
____________________________________________________________________
>Gregory,
>
>Are you doing any CREATEOBJECT() calls? DataSession lifetime is tied to the lifetime of any VFP object instantiated while the form runs. When you look at the _screen.Forms[] collection the form isn't in there?
>
>>I've got a Form with a (subclassed) container ( Treeview control and ImageList control ).
>>The Form has a private datasession. Closing the form leaves an unknown datasession behind. The form closes normally.
>>
>>Except for
this.Treeview.ImageList = this.ImageList
in the init() of the container, there are no object references being kept.
>>
>>Any solution to get rid of the unknown datasession ? (vfp6sp5)
>>
>>Leaving the ImageList out does not help either
Gregory