Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Objects & DataSessions
Message
From
14/08/2002 09:37:22
 
 
To
13/08/2002 11:36:56
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00689172
Message ID:
00689524
Views:
19
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
Previous
Reply
Map
View

Click here to load this message in the networking platform