Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close executalbe
Message
From
20/03/2006 15:23:58
 
 
To
20/03/2006 13:48:14
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01105072
Message ID:
01105975
Views:
23
>>I see. How do I release it from the client app?
>
>What do you mean - normal or forced release?
>
>For normal release you need to release an object reference of server instance just like you release VFP objects.
>If you use variable to store the reference like:
>
loServer = CreateObject("My.Server")
>Then you need to release the reference like:
>
RELEASE loServer
>- or -
>
loServer = Null
>
>If you use an object property then you need to set it to .NULL. (or any other value but Null is usual).
>
>Ensure that there are not other variables or properties which contain the reference, otherwise it will be not released.
>
>As for forced release you need to add appropriate method to server, but this is not recommended because other clients will lose connection to server.
I am setting up an object property to NULL and it's not releasing the server.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform