Requirements for C++ programming in a failover environment
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.
Example G-1  
if ( !(cout << "Hello World" << endl) ) {
cout.clear();
}
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.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset