CORBA basic types
Most of the CORBA types map directly onto C++ types and can be used transparently to C++. The following basic C++ types map directly into CORBA types:
CORBA::Short aShortvariable; ... aShortVariable = 12; ...
CORBA types that return object references
Other CORBA types are not as straightforward to use because they return object references to the caller. The following CORBA types return object references to the caller:
It is the responsibility of the caller to manage the object references and their associated memory. There are two facilities provided by CORBA to do this:
Note: Avoid declaring C++ Static variables as _var. The _var holds a reference to an object. During the end of the process, this object might reference another object that was removed before end processing completes for this static type. As a result, the _var might reference an inappropriate address or null pointer and thereby cause an undesirable ending.