Skip navigation.

CORBA Programming Reference

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

 


CORBA::release

Synopsis

Allows allocated resources to be released for the specified object type.

C++ Binding

void CORBA::release(spec_object_type obj);

Argument

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.

Description

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.

Return Values

None.

Example

CORBA::Object_ptr op = TP::create_object_reference(
"IDL:Teller:1.0", "MyTeller");
CORBA::release(op);

 

Skip navigation bar  Back to Top Previous Next