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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Empty Datasession Still Hanging Around

Status
Not open for further replies.

stanlyn

Programmer
Sep 3, 2003
945
0
16
US
Hi,

How can I release/close/unload/kill an empty datasession that contains NO aliases by referencing it by any means? The datasession viewer shows it as Unknown(x) where x is a number.

1. a form with a private datasession is open... OK
2. the datasession is correct named and contains a list of aliases... OK

3. release the form... OK
4. the datasession is RENAMED to Unknown(x) and contains NO aliases... NOT OK, the datasession should be gone...

Whats going on here?

Thanks,
Stanley
 
This happens when you create some objectes in that data session and did not kill them.

Try this is command window
x= ""
DO FORM xx
(form with private data session having the init code:
x=CTREATEOBJECT("Custome")
Close the form (by clicking on window close)
note the data session is still open
release the variable x and notice the datasession disappears.


Satyen
 
Thanks Satyen,

I've solved the problem, and as you have pointed out, it could be anything, a variable, reference, instance, or object. What was kinda of confusing was, I was looking for a data related object such as a table, alias, etc, because it was hanging the datasession...

Thanks,
Stanley
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top