Why and when to perform this task
Use this task to create code for a CORBA client, shut down the client, and release the resources that it used.
To shut down a CORBA client, add the following code to the main() function in the client.cpp client source file:
int main ( int argc, char *argv[] ) { CORBA::ORB_ptr orbPtr = CORBA::ORB_init ( argc, argv, "DSOM" ); . . . // Release the ORB object. CORBA::release ( orbPtr ); return 0; }
Results
This task adds code that shuts down a CORBA client and releases the resources that it used.