Unloading an ISAPI DLL

dvk
dvk used Ask the Experts™
on
Hi,

I have an ISAPI DLL that i am developing locally on my PC.  The problem I am encountering is when I make changes the DLL is locked, I have to therefore restart the WWW service on my machine to release it

Is there a way I can make the DLL unload itself as I do not want to keep doing this every time I make a change?

Thanx.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Software Developer
Commented:
Hello

You don't need to restart the server, just stop and restart the service not the server

Another soluation to Start your project as CGI, to easily testing your application, then when you finish, convert the project to ISAPI, that's easy to do with Delphi

You can't overwrite the ISAPI, cuz it's still be loaded, IIS caching the ISAPI, I think the default value is 30 min, you can change it to unload the dll after few mintus
http://www.duketown.com/marcel/unloaddll.shtml

There are some utitlies to help you unload your ISAPI

Download ISAPI Manager
http://www.dataweb.de/en/support/isapi.html
or
ISAPI Loader (with delphi source code)
http://www.eggcentric.com/ISAPILoader.htm

there's API I saw in msdn site tells it's unload the ISAPI DLL, I havn't use it before
http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/iisref/isre64oe.htm

Best regards
Mohammed Nasman
Mohammed NasmanSoftware Developer

Commented:
>> You don't need to restart the server, just stop and restart the service not the server

sorry ignore this line, i just copy that from one of my previous paqs
dvk

Author

Commented:
Many thanks...

The solution at http://www.eggcentric.com/ISAPILoader.htm is exactly what I needed.

Mohammed NasmanSoftware Developer

Commented:
Glad that helped you :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial