[fpc-pascal] load a library twice
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...
More information about the fpc-pascal