Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement