Hello
I am writing a program to communicate with an existing one using CORBA.
After i Create a name object, containing the name test/context:
CosNaming::Name name;
name.length(1);
name[0].id = m_ServerName.c_str();
name[0].kind = m_ServerKind.c_str();
then I try to resolve the name service using:
return rootContext->resolve(name);
it doesn't catch errors.
But when i narrow the object reference:
serverPtr = SOT_Server_Command::_narrow(corba_obj);
CORBA::is_nil(serverPtr) error is catched !!!!
i can't understand why the resolve name didnt give errors but when i narrow the object reference i get nill result.
Thank you for the help.
P.S: Source files given in Private message.
Partager