Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clearing a Com object from memory
Message
 
To
27/06/2003 15:50:45
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00804820
Message ID:
00805004
Views:
55
>Thanks, iisreset did it.
>

Jerry,

You might want to create a project class that can be used to automatically (in the BeforeBuild event) shutdown IIS and re-start it (in the AfterBuild event).

>
>>>I am creating a Com object in VFP8. I compile the object as a DLL and test it. This works. But if I make a change and go back to re-compile as the same DLL name, I get a file accessed denied message.
>>>
>>>How do you clear Com objects from memory?
>>>
>>>Thanks,
>>>
>>
>>Jerry,
>>If you're in VFP or VB for testing, setting the variable to .NULL./Nothing or calling its Release method should release it from memory. If you are in ASP, then the IIS service holds your COM object. You can reset IIS using
>>iisreset /restart
>>to sut down IIS and release all of its holds.
>>
>>If you have your COM object set up as a package under MTS/COM+, you can stop the package, recompile your COM DLL and restart the package.
>>
>>HTH.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform