Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quit com exe
Message
 
À
25/01/2006 20:58:09
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01090367
Message ID:
01090693
Vues:
11
>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.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform