Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
And other MTDLL DataSession thing...
Message
From
19/12/2005 02:26:56
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01079072
Message ID:
01079085
Views:
15
>It also seems that the following it true if use DataSession=2 (Private):
>
>1. The COM object is always created with a fresh, empty, data session. For every instance of the object, you must explicitly USE all tables that you want to have open during the life of the object.
>
>2. When the COM object is destroyed, all open tables in its private data session are automatically closed.
>
>This is what I'm seeing with the tests I'm doing. Behavior here is distinctly different than when you use the default data session, in which case both tables and cursors remain open across instances of the object.

- the session object build the datasession
- every object attached to the datasession ( via SET DATASESSION TO into an object's method)
increase the datasession's semaphore
- only when the semaphore become 0 the datasession it is released ( except some bugs )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform