Rajesh Karunakaran
Programmer
Dear Team!
I am not sure if I can put up this question here as it's not completely VFP.
I wrote a DLL in DotNet to access a web API. I registered that using regasm.
I create an object using CREATEOBJECT and able to call the API. I am getting the response as well.
After that I clear that object with 'obj = null' and then 'RELEASE obj'.
However, then when I try to copy a new version of the DLL from my DotNet folder to my VFP application folder,
it says that it cannot copy as the folder or file is still in use. This means, I believe, that one or more
of the resources have not been cleared yet, somehow.
I can assume that the problem could be in my DotNet program or in VFP.
As far as I know, in VFP, setting the obj to null and then RELEASEing it are enough for a DLL object
to be cleared from memory. Or, is there something more to it?
Rajesh
I am not sure if I can put up this question here as it's not completely VFP.
I wrote a DLL in DotNet to access a web API. I registered that using regasm.
I create an object using CREATEOBJECT and able to call the API. I am getting the response as well.
After that I clear that object with 'obj = null' and then 'RELEASE obj'.
However, then when I try to copy a new version of the DLL from my DotNet folder to my VFP application folder,
it says that it cannot copy as the folder or file is still in use. This means, I believe, that one or more
of the resources have not been cleared yet, somehow.
I can assume that the problem could be in my DotNet program or in VFP.
As far as I know, in VFP, setting the obj to null and then RELEASEing it are enough for a DLL object
to be cleared from memory. Or, is there something more to it?
Rajesh