@white
Quote:
is possible to create a script that uses both libraries and use them hot without rebooting the system.
Yes, but it’s not always guarantied.
if a game or program has crashed with the library open it can not be unloaded from memory, or of the program has bad exit code, the library keeps track of the numbers of programs using library by a internal counter, it counts up when the library is open, and count down when the library is closed.
The OS will not immediately flush none used libraries, it will flush libraires when the cpu is idle / low cpu usage, or at critical memory levels, however you can make a suggest to the system that it needs to flush closed libraries, by using the command.
availmem flush
You can check libcount using Scout (OS4 version), to check when it does not flush.
Sadly, the OS cannot tell you what program that is keeping the library open. (users of the library are not keep track of, well technically it can, if that features is built into the library, but it’s not the standard way, and there is no standard way pull that information, if someone has done it.)
Edited by LiveForIt on 2021/1/4 21:17:43
Edited by LiveForIt on 2021/1/4 21:18:31