[fpc-pascal] load a library twice
Anthony Walter
sysrpl at gmail.com
Thu Apr 2 17:05:30 CEST 2015
Both the Windows LoadLibrary/FreeLibrary and Unix style dlopen/dlclose
function internally use a reference counting system to load and unload
dll/shared object (dynamic library) files.
This means that it is safe to call LoadLibrary twice, and FreeLibrary once
whilst keeping the a library loading. It's only when the load/unload counts
match when a dynamic library will be unloaded.
So to answer you question, yes it's okay.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150402/f66a6451/attachment.html>
More information about the fpc-pascal
mailing list