[omniORB] Is CORBA::String_member essentially the same as CORBA::String_var ?

Duncan Grisby duncan at grisby.org
Thu May 22 17:28:00 BST 2003


On Monday 19 May, "Lee, Robert C." wrote:

> Can I use String_member the same way I use String_var? That is, without
> having to worry about freeing the string if I do an assignment to
> String_member via CORBA::string_dup ??

You should never use String_member directly. It is used by the C++
mapping of strings within structs and things like that. It is
essentially the same as String_var, except that it initialises itself
to the empty string, rather than a zero pointer. It frees the string
when it goes out of scope, just like String_var.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list