Board index » delphi » How to shut down an ISAPI DLL?

How to shut down an ISAPI DLL?

I find the dll's extremely hard to debug because once you load them, they
stay loaded and there doesn't appear to be anyone of shutting them down so
you can recompile and overwrite them on the disk.  Of course I can always
shutdown the web server but that tends to cause a lot of problems.  Is there
some more convenient way of doing this?

 

Re:How to shut down an ISAPI DLL?


Hi,

You could always have an action item that shuts it down and calls
TerminateExtension.

--Donovan
junkm...@smartnet.co.za

On Tue, 12 Aug 1997 08:32:03 EDT, Jim O'Brien <james.obr...@pobox.com>
wrote:

Quote
>In article <5sgbmn$1...@uni.library.ucla.edu>, Tony Chow wrote:
>> Is there
>> some more convenient way of doing this?

>Not that I know of.  AFAIK, you have to shut down IIS.

>Mon, 11 Aug 1997 21:50 EDT
>Jim O'Brien, R&D, PTT, Inc.
>wiz...@ptti.com  +1 (212) 972-1702

Re:How to shut down an ISAPI DLL?


Quote
In article <5sgbmn$1...@uni.library.ucla.edu>, Tony Chow wrote:
> Is there
> some more convenient way of doing this?

Not that I know of.  AFAIK, you have to shut down IIS.

Mon, 11 Aug 1997 21:50 EDT
Jim O'Brien, R&D, PTT, Inc.
wiz...@ptti.com  +1 (212) 972-1702

Re:How to shut down an ISAPI DLL?


Quote
"Tony Chow" <everb...@ucla.edu> wrote:
>I find the dll's extremely hard to debug because once you load them, they
>stay loaded and there doesn't appear to be anyone of shutting them down so
>you can recompile and overwrite them on the disk.  Of course I can always
>shutdown the web server but that tends to cause a lot of problems.  Is there
>some more convenient way of doing this?

The best way to do this is to edit the Registry on the server and change the
key:
        HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SRVC\Parameters

and change the value of 'CahceExtensions' from 1 to 0

This allows you to set the output directory in Delphi 3.0 Project|Options to
point to the network drive and directory of 'InetPub\Scripts' and then compile
your extensions directly to the server without having to shut down the server.

Quote

------------------
Thomas Hill, dba t.h.ink Software
email: hi...@ionet.net
wwww: http://www.ionet.net/~hillt
(Check out the IIS ISAPI extention DLL examples at my Web site)
---------
"Being politically correct means always saying you're sorry"

Other Threads