Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quit com exe
Message
From
27/01/2006 10:11:16
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01090367
Message ID:
01090906
Views:
11
Rick

That makes since now. When I stoped calling the com object's release(), it started working. Now I just set the variable holding the com object to null.

Thanks.

>>I have a com exe that I am using to dispaly a progress graphic while doing long processes. I am having problem with the com.exe not releasing. What is the best way to make sure the com.exe gets released from memory? Some code.
>
>Are you releasing the object from Visual FoxPro?
>
>COM objects cannot shut themselves down, the client must shut them down, so the client app should control releasing of the COM object by setting the reference to null.
>
>If there are hanging references however even that will not shut down the server, so make sure you don't have circular reference anywhere.
>
>You can try RELEASE ALL but that may not work in the context of the server depending on what's loaded.
>
>+++ Rick ---
>
>
>
>>
>>loProg = creatobject("progressindicator.ProgressIndicator")
>>loProg.setCaption()
>>loProg.show()
>>loProg.release()
>>
>>
>>If I don't do the show() above the process will be released.
>>
>>Thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform