Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clearing a Com object from memory
Message
 
 
To
27/06/2003 14:33:51
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:
00804863
Views:
36
This message has been marked as the solution to the initial question of the thread.
>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.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform