<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.17023" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=089190311-15042010><FONT face=Arial
color=#0000ff size=2>Read again what Luke wrote and forget about
CORBA::release() on servants.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=089190311-15042010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=089190311-15042010><FONT face=Arial
color=#0000ff size=2>Your call to remove_ref() after creating and activating the
servant is correct but not enough. The memory will only be deallocated when you
deactivate the servant.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=089190311-15042010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=089190311-15042010><FONT face=Arial
color=#0000ff size=2>Regards, Wernke</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=089190311-15042010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=089190311-15042010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> omniorb-list-bounces@omniorb-support.com
[mailto:omniorb-list-bounces@omniorb-support.com] <B>On Behalf Of </B>risc
risc<BR><B>Sent:</B> 15 April 2010 11:10<BR><B>To:</B>
omniorb-list@omniorb-support.com<BR><B>Subject:</B> Re: [omniORB] problem with
server memory deallocation<BR></FONT><BR></DIV>
<DIV></DIV>Hi Luke,<BR><BR>I have read on omniOrb.pdf in omniOrb doc
reference :<BR><BR> Once you have called CORBA::release() on
an object reference, you must<BR>no longer use that reference. This is because
the associated resources may have<BR>been deallocated. Notice that we are
referring to the resources associated with<BR>the object reference and not the
servant object. Servant objects are not affected<BR>by the lifetimes of object
references. In particular, servants are not deleted when<BR>all references to
them have been released—CORBA does not perform distributed<BR>garbage
collection.<BR><BR><BR>that is my case? so there isn't any mechanism to
deallocated object created into a servant routine?<BR><BR>thanks so
Much<BR>Best Regards<BR><BR><BR></BLOCKQUOTE></BODY></HTML>