PortableServer_POA_create_reference_with_id

Carlos Lacasta Llacer <[email protected]>
Newsgroups gmane.comp.gnome.orbit.general
Organization IFIC. Instituto de Fisica Corpuscular
Message-ID <[email protected]>
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


--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.