Archived
This forum has been archived. Please start a new discussion on GitHub.
Allocate/Release in session?
in Help Center
Hi,
The Session interface gives two methods of allocating objects:
a) allocateObjectByType( string type ) and
b) allocateObjectByID( Ice::Identity id )
There is only one method to release an allocated object:
releaseObject( Ice::Identity id ); If I have allocated an object using approach b), there is a method to release it. But how do I release an object that was alloated by type (and for which I don't have it;s identidy).
Regards,
Bertwim
The Session interface gives two methods of allocating objects:
a) allocateObjectByType( string type ) and
b) allocateObjectByID( Ice::Identity id )
There is only one method to release an allocated object:
releaseObject( Ice::Identity id ); If I have allocated an object using approach b), there is a method to release it. But how do I release an object that was alloated by type (and for which I don't have it;s identidy).
Regards,
Bertwim
0
Comments
-
Welcome to our forums!
You can get the identity of the allocated object by calling ice_getIdentity() on the proxy returned from allocateObjectByType().0 -
Ah, of course!
Thanks0