You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Fred Preston <PR...@uk.ibm.com> on 2005/02/09 20:07:42 UTC

Client Handlers




Hi All,
      I'm currently working through client handlers and noticed that the
fini() method in the handler is being called twice, once in what would
appear to be the correct place at the pivot point and once just before the
handler destructor.  Is this correct behaviour?

Regards,

Fred Preston.


Re: Client Handlers

Posted by John Hawkins <HA...@uk.ibm.com>.
One would assume so?
It's telling you that you should clean any memory at key points in the 
cycle ie.g. (in client-side)  just after the outgoing msg and just after 
the incoming msg. Perhaps the one just after the incoming msg is overkill 
I guess because you could just leave it to the destructur - but then ... 
when does the destructor get called for mulltiple calls to the same stub I 
assume we hold on to them therefore yes fini being called twice is good as 
the destructor would not always be called.





Fred Preston/UK/IBM@IBMGB 
09/02/2005 19:07
Please respond to
"Apache AXIS C Developers List"


To
axis-c-dev@ws.apache.org
cc

Subject
Client Handlers










Hi All,
      I'm currently working through client handlers and noticed that the
fini() method in the handler is being called twice, once in what would
appear to be the correct place at the pivot point and once just before the
handler destructor.  Is this correct behaviour?

Regards,

Fred Preston.