FW: [omniORB] Is this a Bug in OmniORB??
bjorn rohde jensen
bjensen@fastmail.fm
Wed Aug 7 14:43:00 2002
Hi Sahay,
Well, you usually dont actually return
CORBA::objects. You return references to
servants incarnating Objects exposing the interfaces
defined in your idl, so you should definately
not try to pass CORBA::_nil() reference, where
a MyObject reference is expected. That would
correspond to an invalid cast, possibly with all
sorts of nasty effects or just compile error.
You could do something like;
MyObject getValue(int objectID)
{
return MyObject::_nil();
}
That ought to work. Not checked it though;)
Yours sincerely,
Bjorn