CORBA Programming Reference
Allows allocated resources to be released for the specified object type.
void CORBA::release(spec_object_type obj);
The object reference that the caller will no longer access. The specified object type must be one of the types listed in the section CORBA Member Functions.
This member function indicates that the caller will no longer access the reference so that associated resources may be deallocated. If the specified object reference is nil, the release operation does nothing. If the ORB instance release is the last reference to the ORB, then the ORB will be shut down prior to its destruction. This is the same as calling ORB_shutdown
prior to calling CORBA::release
. This only applies to the release
member function called on the ORB.
This member function may not throw CORBA exceptions.
CORBA::Object_ptr op = TP::create_object_reference(
"IDL:Teller:1.0", "MyTeller");
CORBA::release(op);