>>I have a form with a private datasession. In code i create new cursors within the form. In unload event i close all of this cursors, but datasession does not disappears from my datasessions window. What more can i do to release it?.
>>Carlos.
>
>Hi Carlos,
>whether you have a private datasession and property AutoCloseTables = .T., all of tables and cursors in form's datasession are automatically closed and it is not necessary to close them programatically.
>If you want to still close them programatically in unload event, try to call Dodefault(). That may help.
>
>Sincerely,
>Petr Valach
Petr,
I only close programatically those cursors created by code within the form and that are not in the DE, so form can't close them automatically. Otherwise i have 'dodefault()' clause in my unload event. But datasession is not releasing.
Carlos.
Saludos,
A.G.P.
---------