<div dir="ltr"><div>Hi,</div><div>I use omniorb 4.1.6 on Windows (32bit) in a debug version. I have some exception like (Visual Studio Output) : </div><div>First-chance exception at 0x759cc41f in CORBA-Serveur.exe: Microsoft C++ exception: omni::giopStream::CommFailure at memory location 0x032af7a0..<br>
</div><div><br></div><div>My application works to a certain point then an exception of type CORBA::COMM_FAILURE or CORBA::TRANSIENT is thrown on the client side.</div><div><br></div><div>This error seems to happened when my computer is confronted to some lags.</div>
<div><br></div><div>Can anybody help me to understand what does it means ? How can I correct this playing with parameters, changing some codes,... ?</div><div><br></div><div>I use the try-catch statement in the tutorial :</div>
<div><div><span class="" style="white-space:pre">        </span>catch(CORBA::COMM_FAILURE& ex) {\</div><div><span class="" style="white-space:pre">                </span>cout << "Caught system exception COMM_FAILURE -- unable to contact the "\</div>
<div><span class="" style="white-space:pre">                        </span><< "object." << endl;\</div><div><span class="" style="white-space:pre">        </span>}\</div><div><span class="" style="white-space:pre">        </span>catch(CORBA::TRANSIENT&) {\</div>
<div><span class="" style="white-space:pre">                </span>cout << "Caught system exception TRANSIENT -- unable to contact the "\</div><div><span class="" style="white-space:pre">                        </span><< "server." << endl;\</div>
<div><span class="" style="white-space:pre">        </span>}\</div><div><span class="" style="white-space:pre">        </span>catch(CORBA::SystemException& ex) {\</div><div><span class="" style="white-space:pre">                </span>cout << "Caught a CORBA::" << ex._name() << endl;\</div>
<div><span class="" style="white-space:pre">        </span>}\</div><div><span class="" style="white-space:pre">        </span>catch(CORBA::Exception& ex) {\</div><div><span class="" style="white-space:pre">                </span>cout << "Caught CORBA::Exception: " << ex._name() << endl;\</div>
<div><span class="" style="white-space:pre">        </span>}\</div><div><span class="" style="white-space:pre">        </span>catch(omniORB::fatalException& fe) {\</div><div><span class="" style="white-space:pre">                </span>cout << "Caught omniORB::fatalException:" << endl;\</div>
<div><span class="" style="white-space:pre">                </span>cout << " file: " << fe.file() << endl;\</div><div><span class="" style="white-space:pre">                </span>cout << " line: " << fe.line() << endl;\</div>
<div><span class="" style="white-space:pre">                </span>cout << " mesg: " << fe.errmsg() << endl;\</div><div><span class="" style="white-space:pre">        </span>}\</div><div><span class="" style="white-space:pre">        </span>catch(...) {\</div>
<div><span class="" style="white-space:pre">                </span>cerr << "Caught unknown exception." << endl;\</div><div><span class="" style="white-space:pre">        </span>}</div></div><div><br></div><div><br></div>
<div>Thanks for maintining this project !</div><div>Thomas</div></div>