[omniORB] Cleaning up after string_to_object

Pearl Rothman prothman at gmail.com
Thu Sep 1 14:45:14 BST 2011


I am storing the result in a _CORBA_ObjRef_Var. Should I be storing it in a
_CORBA_ObjRef_Var* ? Then should I be calling delete on the
_CORBA_ObjRef_Var* ?

Thanks
On Thu, Sep 1, 2011 at 10:44 AM, Brian Neal <bgneal at gmail.com> wrote:

> 2011/9/1 Pearl Rothman <prothman at gmail.com>:
> > Hi,
> >
> > Is there a way for me to release memory of an object that was allocated
> > using string_to_object but is no longer being used?
>
> If you are using C++, store the result of string_to_object() in a
> *_var.  The _var will call CORBA::release() on the object reference
> when the var goes out of scope. For more information, see the IDL to
> C++ language mapping or the Henning & Vinoski book.
>
> Best,
> BN
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20110901/f5b23fab/attachment.htm


More information about the omniORB-list mailing list