[Oorexx-devel] Package unloader not run ?

2009-05-10 Thread Rony G. Flatscher
It seems that the package unloader function does not run if there exists an interpreter instance that has not received a Terminate() request. In this use-case a RexxStart() is used to run a Rexx program, but independently, a RexxCreateInstance() instance got created and just hangs around. Is

Re: [Oorexx-devel] Package unloader not run ?

2009-05-10 Thread Rick McGuire
Loaded packages are global to the processthey will only be unloaded once all active interpreter instances go away. Rick On Sun, May 10, 2009 at 1:28 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: It seems that the package unloader function does not run if there exists an

Re: [Oorexx-devel] Package unloader not run ?

2009-05-10 Thread Rony G. Flatscher
Rick McGuire wrote: Loaded packages are global to the processthey will only be unloaded once all active interpreter instances go away. Hmm. If one uses RexxCreateInterpreter(), which loads a library, but just keeps a pointer to that instance, without using it for anything (hence no code

Re: [Oorexx-devel] Package unloader not run ?

2009-05-10 Thread Rick McGuire
The interpreter instance becomes inactive when you terminate it. You create the instance, you do something with it, when you are finished, you terminate it. If that's the last active instance, then the global environment is shutdown. Rick On Sun, May 10, 2009 at 3:57 PM, Rony G. Flatscher