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: Eric Noulard
Subject: Re: [certi-dev] Ownership query not working
Date: Thu, 27 Aug 2015 15:07:55 +0200

Hi David,

Thank you very much. I've just pushed your fix:

commit d4756a5b4cb6e6fd0d616d012224b4ee65e202a7
Author: David Come <address@hidden>
Date:   Thu Aug 27 15:05:58 2015 +0200

    Fix call to queryAttributeOwnership and isAttributeOwnedByFederate.
    Some parameters were swapped.
   
    Signed-off-by: Eric NOULARD <address@hidden>



2015-08-26 20:44 GMT+02:00 David Come <address@hidden>:
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.

--
CERTI-Devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/certi-devel




--
Eric

reply via email to

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