Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with releasing datasession

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi there!

I've got big problem with releasing datasession after form's
closed.
What happened is this :
Form has private data session with few tables.
During the code I'm creating multiple cursors that I
will need for calculation and display purposes. After code is executed and I'm closing the form -- tables that was included in the private datasession are released , but
cursors that I've created during the code and tables that I used there -- are not released and data session got renamed to "Unknown" !!! Therefor I have multiple problems around the project (i.e."File's in use" probably
because it holds previous datasession). I don't see a way so far to get this datasession released.
In my mind it supposed to release my cursors while I'm closing the form -- automatically ?
Also project works along with INT'L Tool (By S.Black) --
would it cause such behavior ?
Got out of ideas and need to get out of this problem as fast as possible !

Help Help Help !
Thanx in advance

 
Hi PastorShlag,

When you are left with an unknown datasession it could be possible that an object assigned to this datasession is not released correctly, causing the datasession to stay open.

You should check if all objects created in your datasession are released.

This means that if you release your form and an object assigned to this datasession is still active, the form is released (from the datasession) and the datasession is left open as an unknown datasession.

This can be a trial and error process, but I suggest you check if all objects are released. You could try to specifically release all objects yourself to try and find the object that causes the data session to stay open.

Weedz
veld4663@exact.nl

'It never hurts to help...' - Eek the cat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top