Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private DataSession persists after Form close
Message
From
20/11/1998 23:58:17
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Private DataSession persists after Form close
Miscellaneous
Thread ID:
00160084
Message ID:
00160084
Views:
64
A Form with a Private DS is instantiated with some Tables opened in Load. Another object is instantiated (noncontained by form) from within :-

PUBLIC oRef
oRef = CREATEOBJECT()

oRef is here to stay after the form is released. After the Form’s release, we find that the DS is still valid. SET DATASESSION TO (nOldDS), and the tables are still opened with the record pointers intact.

We can then say that objects created by CREATEOBJECT() from within the form that were not released prior to the Form's release, prevents the Form's PrivateDS from closing automatically

I encountered this behavior a couple of months back, and wonder if there’s somethign I overlooked. Would also like to know if this behavior can be observed in VFP6 as well.

TIA
Kenneth.
Next
Reply
Map
View

Click here to load this message in the networking platform