You usually will have some property or memvar that is holding some kind of reference value related to that form. Until that property is set to null or the memvar is released or set to null, that session will remain open. YOu could also have had some code that changes to the DataSession of the form without setting the DS back to what it originally was before releasing the form. This is the least likely cause.
For now, CLEAR ALL will work, however, you need to figure out why the dangling session before your app goes out the door.
>Hi,
>
>All forms where destroyed, the program were cancelled and in the command window I put :
>
>CLEAR ALL
>CLOSE DATABASE ALL
>
>and still, a ghost datasession is still opened with no tables.
>
>I need to close it.
>
>Any idea wil be apreciated.
>Thanks a lot.
>
>Pablo V
Mark McCasland
Midlothian, TX USA