Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Nov : FreeLibrary() question

www.cryer.info
Managed Newsgroup Archive

FreeLibrary() question

Subject:FreeLibrary() question
Posted by:"bill" (mcmuddjunk..@earthlink.net)
Date:Thu, 10 Nov 2005 18:01:21 -0800

MS says, "The FreeLibrary function decrements the reference count of the
loaded dynamic-link library (DLL). When the reference count reaches
zero, the module is unmapped from the address space of the calling
process and the handle is no longer valid."

Ok so the DLL (or .exe) is not unloaded from system memory it's just
no longer usable by the calling app ? And if another app needs to call it,
it just uses LoadLibrary/GetProcAddress etc. ? And if it's kernel32 then
LoadLibrary is just ingnored ?

Thanks for clarity,

Bill Mudd

Glossary

File Types

Replies:

www.cryer.info
Managed Newsgroup Archive