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