IiopObjectRelease Function

Action

Releases a CORBA object and frees all resources.

Note: CORBA objects are automatically released if the IiopObjectCreate function is called to bind a handle to another object.

Include file

IIOP.bdh

Syntax

IiopObjectRelease(inout hIiop: number): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
hIiop Handle to a CORBA object

Example

dcltrans
transaction TObjectRelease
const
HOST := "192.168.20.21"; // server
PORT := 1052; // port
KEY := "...\h00"; // key
KEYLEN := 4; // key length
var
hIiop : number; 
// handle to a CORBA objectnSum : number;
begin
IiopSetMaxGiopVersion("1.2");IiopSetByteOrder(IIOP_BIG_ENDIAN);
// retrieve handle to server
IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2",HOST, PORT, KEY, KEYLEN);
// call request "Print"
IiopRequest(hIiop, "Print", IIOP_ONEWAY);
IiopObjectRelease(hIiop);
end TObjectRelease;