Home Help Center

a question about AMI invoke

mathglmathgl Member gelin yanOrganization: RoundTech Research CentreProject: large scale vehicle tracing system
Hi all

I have a method named like that: SetMessageList. Since Ice.3.4, we have a new async style invoke, so i use:

r = prx.begin_SetMessageList(xxx)

r.waitForSent()

r.waitForCompleted()

my question is whether i need to put r.getProxy().end_SetMessageList(r)
after "r.waitForCompleted()"? According to the doc, the "end_XX" ought to be invoked anyhow.

Thanks.

Comments

  • mwilsonmwilson Member Mark WilsonOrganization: Integrated Computer Solutions, Inc.Project: TBD ✭✭✭
    If you want to catch any exceptions, or if there is a return value from the method, you need to call end_XXX. Any exception generated by the call will be thrown at that point. Don't forget you can use type-safe or generic callbacks to receive asynchronous notification of AMI completion...
Sign In or Register to comment.