In a failover configuration, special consideration must be taken for C++ applications that use the Standard Input/Output facilities of the C++ Standard Library. During a failover event, the standard output and standard error streams are closed by the system software. The error state flags must be cleared by the application afterwards to resume using these streams.
Example G-1 shows one method to clear the error state flags.
If the error state is left in the set state, standard output or standard error information is lost because the error state flags for the stream are on.