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.