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.
Hi All,
Is the following correct:
var
h1, h2: TLibHandle;
lib1, lib2: string;
begin
lib1 := 'library.so';
lib2 := 'library.so';
h1 := LoadLibrary(lib1);
h2 := LoadLibrary(lib2);
end.
The reason I need this is that I would like to keep the possibility to
provide different group of fun