[orbitcpp-list] More questions...
Status: Beta
Brought to you by:
philipd
From: Mike B. <mb...@co...> - 2000-09-15 13:32:10
|
I was noticing in some of your test code that after calling orb->string_to_object() you call obj->_narrow(). If my understanding is correct, this is essentially a cast mechanism. My first question is why is this done in orbitcpp but not in ORBit, is it simply because C++ handles casting differently or is there more to it? Also, the implementation of _narrow() appears to be calling _duplicate(), is it truly allocating a new object and copying as the name suggests, or just doing some refcounting? Also, does one need to call CORBA::release() separately for both the reference returned by string_to_object() as well as the reference returned by _narrow()? -- TTFN MikeB |