Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Killing a VFP DLL used in ASP
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00195624
Message ID:
00195746
Views:
31
>>How do you release the VFP OLE Object when it is used in an ASP?
>if you used something like
>set ox = CreateObject("protecit.protecit")
>ox.blah
>ox.blah
>set ox=nothing
>
>This should do it.


It doesn't. This is because ASP does an extra AddRef() (or LoadLib()) on a DLL when first loaded causing it to *never* release through the normal COM unload
processes.

Only way to kill any ASP loaded COM object reliably is to shut down the Web
server. You can shut down an MTS session, but this will cause problems if
you have a busy Web site, because the MTS session is unlikely to be off long
enough to copy in a new component. This is one of the major shortcomings
of ASP.

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform