Try to switch back to default datasession using SET DATASESSION TO before closing formset. It should release your private DataSession.
>I have a FormSet with a private DataSession that activates various forms.
>When a form is released, it checks if it is the last active form, it releases the dataset.
>I noticed that if one of the form are activated, when the FormSet is released,
>the DataSession remains with all tables and cursors open.
>
>I added to the FormSet
>********************************************************
>PROCEDURE UnLOAD
> CLOSE DATA ALL && ????? Not always releasing datasession,
> && atleast close files
> DODEFAULT()
> RELEASE ofrsARTrns
>ENDPROC && UnLoad
>********************************************************
>The files are noe closed,
>but the DataSession remains.
>
>Any ideas?
>
>Thanks
>Shlomo
--sb--