Hello,
I work on dynamic library and a software.
I have a library, other (multiple) libraries use it. But my host application will load this library and libraries wich use the base library (you can be
).
This library is loaded by a common unit, the initialization section contain a
StartCore. Functions are loaded with the syntax
procedure Anyone({something...});register;external 'MyLib.so';
// ...
initialization
if not StartCore(LibInfos) then
halt(2);
// ...
end.
I would like know if
the library space into the process is common or duplicated beetwen libs and main program?
I'm on Linux but I would like this work on Mac and many other (Windows is optionnal
)
I think use a variable into the library or a environment variable to avoid multiple
StartCore.
Answer or comments ? I have not tested it. Thank you if you clear this suspicious game...