Attempting to OPEN/REOPEN a stream with a referent which is already in use.

#6069   Run-time catchable error

Attempting to OPEN/REOPEN a stream with a referent which is already in use.

Additional Information

For stream 'X' : For referent 'Y' which is attached to stream 'Z'.

Explanation

A stream can be opened or reopened as a referent only if the referent is not attached to another open stream.