The RXINI and RXTER exit invocations do not match each other, i.e. if maintaining separate counters for RXINI invocations they do not match the RXTER invocations. Interestingly, the RXTER invocation counter exceeds the RXINI invocation counter.
This was observed with ooRexx 4.1.1 using the newly developed ability of BSF4ooRexx to implement exit handlers in Java.
A testcase can be found (due to its size) at http://wi.wu.ac.at/rgf/rexx/tmp/debug/, named "tmp20120222.zip", which demonstrates this behaviour:
- download and unzip this archive, change into - open a command line window and change into the subdirectory "tmp20120222" - follow the few instructions given in the "readme.txt" file
The test demonstrating this behaviour is in the subdirectory "test_unbalanced_rxini_rxter" and can be started by entering "java JavaRunRexxWith_RXINI_RXTER_Exit" which will load the Rexx interpreter and execute the Rexx program stored in "testRexxWith_RXINI_RXTER_Exit.rxj".
The output is quite wide, but one can see the counters on the right hand side (total, RXINI, RXTER counter).