Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quit com exe
Message
De
26/01/2006 11:42:32
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
26/01/2006 11:33:28
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:
01090542
Vues:
10
Thanks Tore,

You got me on the right track. This works.
loProg = creatobject("progressindicator.ProgressIndicator")
loProg.setCaption()
loProg.show()
loProg.visible = .f.
loProg = null 
/pre>

It seems funny that geting rid of the release() made the differenct. 

Thanks again.


>Sorry, I overlooked that. You have to hide it/make it not visible in order to release it.
>
>>Tore,
>>
>>I tried that and it didn't help.  The interesting part is if I don't show() the form then the com object will release.
>>
>>>>Hi All
>>>>
>>>>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.
>>>>
>>>><pre>
>>>>loProg = creatobject("progressindicator.ProgressIndicator")
>>>>loProg.setCaption()
>>>>loProg.show()
>>>>loProg.release()
>>>>
>>>>
>>>>If I don't do the show() above the process will be released.
>>>>
>>>>Thanks.
>>>
>>>
>>>loProg = creatobject("progressindicator.ProgressIndicator")
>>>loProg.setCaption()
>>>loProg.show()
>>>loProg.release()
>>>loProg=.null.
>>>Release loProg
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform