Intended Usage
This method is intended to be used by client and server applications to duplicate a reference to an ORB object. Both the original and the duplicate reference should subsequently be released using CORBA::release(ORB_ptr).
Syntax
static CORBA::ORB_ptr _duplicate (CORBA::ORB_ptr p);
Input parameters
Return values
Example
/* For illustrative purposes, the following program duplicates the orb pointer */ #include "corba.h" int main(int argc, char* argv[]) { int rc = 0; CORBA::ORB_ptr cop = CORBA::ORB_init(argc, argv, "DSOM"); CORBA::ORB_ptr dup_cop = CORBA::ORB::_duplicate(cop); return rc; }