Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Mar : Unloading a DLL

www.cryer.info
Managed Newsgroup Archive

Unloading a DLL

Subject:Unloading a DLL
Posted by:"Andrew Jameson" (conta..@softspotsoftware.com)
Date:Wed, 2 Mar 2005 11:59:07

Hi,
After calling FreeLibrary why do I often find that the DLL cannot be deleted
?  I've experienced this problem over the years and it's a real pain during
development to have to reboot simply to update the DLL. I appreciate that
Windows preserves a counter associated with DLLs and only when the count is
zero does the DLL finally get released ... in my case, there's only my
application so it should be released after my FreeLibrary call.

Thanks

Andrew

Replies:

www.cryer.info
Managed Newsgroup Archive