Results 1 to 2 of 2

Thread: a question about AMI invoke

  1. #1
    mathgl is offline Registered User
    Name: gelin yan
    Organization: RoundTech Research Centre
    Project: large scale vehicle tracing system
    Join Date
    Jan 2010
    Location
    HongKong
    Posts
    23

    a question about AMI invoke

    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.

  2. #2
    mwilson is offline Registered User
    Name: Mark Wilson
    Organization: University of Rochester
    Project: Omega EP laser
    Join Date
    Jul 2005
    Location
    Rochester, NY
    Posts
    100
    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...
    Mark E. Wilson
    Lead Programmer/Analyst
    Omega EP Project
    Laboratory for Laser Energetics (www.lle.rochester.edu)
    University of Rochester
    Rochester, NY 14623

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. A question on AMD/AMI chian
    By OrNot in forum Comments
    Replies: 1
    Last Post: 06-10-2010, 01:38 PM
  2. C# AMI mapping question/suggestion
    By adv12 in forum Comments
    Replies: 3
    Last Post: 10-29-2008, 06:08 PM
  3. Question about AMI (C++)
    By albertods in forum Help Center
    Replies: 10
    Last Post: 09-25-2006, 06:34 AM
  4. Question about AMI
    By OrNot in forum Help Center
    Replies: 3
    Last Post: 12-24-2005, 03:12 AM
  5. AMI question
    By stephan in forum Help Center
    Replies: 7
    Last Post: 03-02-2005, 04:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •