@thellier
I was thinking you wanted to open a library inside your library, whit out having to do it in function/methods of the library’s.
I don't have Arexx support in any of my programs, so I can't really help you whit that. (well I remember a long long time ago I played whit Arexx support in AMOS... but that does not count
, nor do I remember the code )
Your idea to ingorge CloseLibrary sounds like danger to me, as the Lib_OpenCnt will just Increase until the number overflows, resulting in a Lib_OpenCnt = 0 and the library Expunge kicking in, at a unpleasant point in time.
You will need to create some alternative way to keep track of if library used by Arexx or not, if you want to keep supporting Expunge function of the library.