[omniORB] problem with server memory deallocation
risc risc
riscman77 at gmail.com
Mon Apr 12 13:08:29 BST 2010
Hi Luke,
thanks for your reply and support. Yes i understand the concept thanks, but
i have tryed to add e remove reference after the object Activation POA
with
test_p1_i * n=new test_p1_i;
n->name("Alex");
test::p1_var ret=n->_this();
n->remove_ref();
return ret._retn();
in the client:
test::p1_var l=login->function();
l->nome();
orb->destroy();
also if i make :
test::p1_ptr l=login->function();
l->nome();
CORBA::release(l);
orb->destroy();
the object allocated from server is not be deallocated. however if in the
server add another one n->_remove_ref();
it be deallocated before return to client.
seem for the passing the object to client is added the reference another
one... :(
maybe i had mistake in client caller?
Thanks
Regard
R!SC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20100412/ec8b5d40/attachment.htm
More information about the omniORB-list
mailing list