[omniORB] feeding nil objrefs in python

Duncan Grisby duncan at grisby.org
Tue Apr 12 12:05:23 BST 2005


On Saturday 9 April, Renzo Tomaselli wrote:

>     it appears that is not possible to transport a fully qualified nil
> object reference within an any generated by pyhon.
> For a given interface Folder, we can build an any containing a nil
> reference by:
> 
> any = CORBA.Any(CORBA.TypeCode(CORBA.id(Folder)), Folder._nil)
> 
> and fetch it on a C++ server side as:
> 
> CORBA::Object_ptr obj;
> any >>= CORBA::Any::to_object(obj);
> 
> However, while the transported typecode appears to be a Folder, the
> fetched obj is a generic CORBA::Object::_nil() and not a
> Folder::_nil().

How can you tell?  The only supported operation on nil object references
is to call CORBA::is_nil, so it doesn't matter what kind of nil you
have.

What are you actually trying to do?

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list