[omniORB] Cleaning up after string_to_object
Brian Neal
bgneal at gmail.com
Thu Sep 1 10:44:53 BST 2011
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
More information about the omniORB-list
mailing list