Duplicates a CORBA object handle. Since each handle is associated with a data structure, you need to call this function to copy an object handle.
IIOP.bdh
IiopObjectDuplicate( in hIiop : number, out hCopy : number ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hIiop | Handle to a CORBA object |
hCopy | Variable receiving the copy of the CORBA object handle |
dcltrans transaction TMain const HOST := "192.168.20.21"; // server PORT := 1052; // port KEY := "...\h00"; // key KEYLEN := 4; // key length var hIiop, hCopy: number; begin IiopSetMaxGiopVersion("1.2"); IiopSetByteOrder(IIOP_BIG_ENDIAN); IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2", HOST, PORT, KEY, KEYLEN); // copy object handle IiopObjectDuplicate(hIiop, hCopy); IiopObjectRelease(hIiop); IiopObjectRelease(hCopy); end TMain;