[omniORB] What is wrong here ?

R.K.Beck at t-online.de R.K.Beck at t-online.de
Tue Oct 28 15:48:46 GMT 2003


My 5 cent: I guess you are on Windows and run into one of the "few"
iostream bugs; the "operator char*()" does not work as expected.

Try
   cout <<"IOR is " << str.in() << endl;

The funny thing is the Windows iostream implementation ...

>   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 ?
>



More information about the omniORB-list mailing list