#1052 Invocations of RXINI and RXTER exits not balanced

APIs (66)

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).


  • Rick McGuire

    Rick McGuire - 2012-02-22

    Everything I see in the debugger points to an error in your code. In the debugger, I see 44 calls to RXINI and 44 calls to RXTER. They match exactly. This is quite different from the counts you are reporting in your log information.

  • Rony G. Flatscher

    Was programming error of reporter, ooRexx is fine.

  • Rick McGuire

    Rick McGuire - 2013-11-22
    • Pending work items: --> none
    • Group: Next_Release --> None


Cancel  Add attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks