Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quit com exe
Message
From
26/01/2006 11:42:32
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
26/01/2006 11:33:28
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01090367
Message ID:
01090542
Views:
8
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
Previous
Reply
Map
View

Click here to load this message in the networking platform