PortableServer_POA_create_reference_with_id



Hello there,

I am having problems with PortableServer_POA_create_reference_with_id in
ORBit2-2.10.0

The problem is the following:

I create a POA with USER_ID and DEFAULT_SERVANT, but I guess this is not
yet the problem. I set the default servant and then I want to get a
reference to an object calling

PortableServer_POA_create_reference_with_id(
	poa,
        objid,
	"IDL:DAQ/DAQmanager:1.0",
	ev);

It immediately complains with:

** ERROR **: file poa.c: line 864 (ORBit_POA_obj_to_ref): assertion
failed: (pobj && !pobj->base.objref)

Looking at the code I see, in
PortableServer_POA_create_reference_with_id, something like

...

	pobj = ORBit_POA_object_id_lookup_T (poa, oid);
	if (!pobj)
		newobj = ORBit_POA_create_object_T (poa, oid, ev);
	else
		newobj = CORBA_OBJECT_NIL;

	obj = ORBit_POA_obj_to_ref (poa, pobj, intf, ev);

...

To my understnding, since it is the first time I want the reference to
that object, pobj will be NULL and newobj will be assigned the result of
ORBit_POA_create_object_T, but when ORBit_POA_obj_to_ref is called with
pobj as a second argument it will invariantly complain with the message
I am getting...

Is there anything I should do before calling create_reference_with_id ?


Thanks in advance,

Carlos


--



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]