Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private DataSession persists after Form close
Message
De
20/11/1998 23:58:17
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Private DataSession persists after Form close
Divers
Thread ID:
00160084
Message ID:
00160084
Vues:
70
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform