General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only