Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Objects & DataSessions
Message
De
14/08/2002 09:37:22
 
 
À
13/08/2002 11:36:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00689172
Message ID:
00689524
Vues:
18
Hi Kevin,

you're a person of few words. <s>

Markus Egger and Markus Winhard did a truly fantastic job on this topic in FoxPro advisor a year or two back.

In short, from what I remember: classes stick to datasessions; and a datasession remains, even if the ds object isn't held somewhere, so long as a cursor remains open in it.

In my applications, I have a custom object sitting on top of oApp, which has its own ds. That way I can keep views open during the entire life of the application, and access them, through methods, from anywhere in the application. So I don't have to be concerned about all the cursors being close, I hold the datasession object in a property of my custom class, closing the data and nulling the ds object when the custom object destroys.

hth,

Hank
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform