certi-devel
[Top][All Lists]
Advanced

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

Re: [certi-dev] Ownership query not working


From: David Come
Subject: Re: [certi-dev] Ownership query not working
Date: Wed, 26 Aug 2015 11:44:54 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

Le 26/08/2015 11:15, David Come a écrit :
Hello,

I'm trying to use the query ownership mechanism but I'll always end up with an ObjectNotKnown exception
Please find attached the code I'm using and the RTIG's log.

The logs lead me to believe there is a bug : RTIG.log shows on line 7 "Object <2>not found in map set."
while it should be object <1> (because it is what i'm asking for, see line 50 of rtigLOG).

Many thanks;
David.


I  have found the bugs.

prototype :
ObjectSet::queryAttributeOwnership(FederateHandle the_federate,
                            ObjectHandle the_object,
                            AttributeHandle the_attribute)

The use In Federation::queryAttributeOwnership line 2193

 root->objects->queryAttributeOwnership(id, attribute, federate);

It should be  :
 root->objects->queryAttributeOwnership(federate, id, attribute);

Same issue with isAttributeOwnedByFederate

David.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]