Intended Usage
This method is intended to be used by client and server applications to create a nil Object reference. Since a nil value proxy object may be generated and returned by this call (versus a NULL), nil references can and should be released when no longer required by the client application. Due to this "variable" returned value, client and server applications should be using the CORBA::is_nil() method for checking for nil references (instead of checking against NULL).
Syntax
static CORBA::Object_ptr _nil ();
Input parameters
None.
Return values
Example
/* Assume the following IDL interface */ interface testObject { string testMethod ( in long input_value, out float out_value); }; /* Here is the cpp code */ testObject_ptr test_obj = testObject::_nil(); ...