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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to