Attempting to flush an unattached stream.

#6116   Run-time catchable error

Attempting to flush an unattached stream.

Additional Information

For stream 'X'.

Explanation

An unattached stream cannot be flushed.