Hi,<br><br>Servant implementation:<br><br>In Method <br><br>CORBA::Object_ptr GetReference(const char *name)<br>{<br>     //resolve naming service with given name as input parameter <br>       return ns-&gt;resolve(name);<br>

}<br><br>Client side implementation:<br><br>I am getting reference to above method and accessing it through that reference<br><br>CORBA::Object_var obj = server-&gt;GetReference(&quot;name&quot;);<br><br>I am trying to send this &quot;obj&quot; as input parameter to other server side method as<br>

<br>void AddReference(CORBA::Object_ptr obj)<br>{<br>   //i had created a STl set and i am tring to insert this referenc in it<br>  //typedef set&lt;CORBA::Object_ptr&gt; list_;<br>//list_ objList_;<br>objList_.insert(obj);<br>
}<br><br>Now from client side i am calling this AddReference passing with same obj multiple times like<br> <br>AddReference(obj);<br>AddReference(obj);<br><br>and now with debug messages on server side, when i iterate the STL set,it is printing twice,but this should not happen beacuse,when we pass same object_ptr multiple times,it should avoid adding duplication,but this is not happening in my case.<br>
<br>Please suggest me where i am doing wrong.<br><br>guru<br><br><br><br>