[omniORB] release an Interface pointer
Harald Hopfes
harald.hopfes@vs.dasa.de
Thu, 06 Aug 1998 17:17:14 +0200
Hello,
Is it necessary (or does it at all make sense) to call
Interface_Helper::release(<Interface_ptr>);
before doing a bind again, instead of doing a just a rebind.
The overall purpose of this is, if I get an error during a call,
I ask the nameserver again for a server-object, just in case
the server stopped and restarted.
Aren't the following calls allocating memory that needs to be
released?
CORBA::Object_ptr obj_ptr = rootContext->resolve("ANY_NAME");
Interface_ptr p = Interface::_narrow(obj_ptr);
Sorry, if I am asking a stupid question!
Thank you very much,
Harald