I have the following code to log the ReqMsg to stdout but application will get crash with segmentation fault in the cout line. Can't we use ReqMsg like this. If not what is the way to log the ReqMsg. try { AppClient client; OmmConsumer consumer( OmmConsumerConfig().host( "localhost:14002" ).username( "user" ) ); ReqMsg reqMsg; reqMsg.serviceName("DIRECT_FEED").name("IBM.N"); cout << reqMsg << endl; consumer.registerClient( reqMsg, client ); sleep( 60000 );// API calls onRefreshMsg(), onUpdateMsg(), or onStatusMsg() } catch ( const OmmException& excp ) { cout << excp << endl; }