Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM object still in Memory
Message
From
26/07/2000 17:26:27
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00396650
Message ID:
00397344
Views:
18
>Shutting down, the service.
>
>Anyway, the cool part about this that you no longer have to sut down the web server at all. Now if I could just figure out a programmatic way to do what that button does...
>
>Mike


You can use IIS' ADSI provider to do this:

oVD = GETOBJECT("IIS://MYMACHINE/W3SVC/1/MyVirtualDir,IIsWebVirtualDir"
oVD.AppUnload()

Where MYMACHINE is the name of the machine the server resides on, 1 is the enumeration of the site in question (most only have 1), and MyVirtualDir is the name ofthe virtual directory.

For in-proc apps, this will only unload your object if there are no outstanding references. (Session vars)
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform