[omniORB] What is wrong here ?

Ali Reza A.Reza at zensar.com
Tue Oct 28 16:37:20 GMT 2003


  try 
  {
    CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
    CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
    
    PortableServer::POA_var poa = PortableServer::POA::_narrow(obj);
    PortableServer::POAManager_var mgr = poa->the_POAManager();
    mgr->activate();

    Time_impl time_servant;
    Time_var tm = time_servant._this();
    CORBA::String_var str = orb->object_to_string(tm);
    cout <<"IOR is " << str << endl;
...

The output I get is:
IOR is 002F4F28

No exceptions are caught ! Its funny isn't it ?

Best Regards



More information about the omniORB-list mailing list