• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Distributed Objects "connection went invalid while waiting for a reply"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distributed Objects "connection went invalid while waiting for a reply"


  • Subject: Re: Distributed Objects "connection went invalid while waiting for a reply"
  • From: "Hamish Allan" <email@hidden>
  • Date: Fri, 1 Aug 2008 21:52:55 +0100

On Fri, Aug 1, 2008 at 1:02 AM, Chris Suter <email@hidden> wrote:

> The reason you're seeing the error is because as soon as you receive the
> response in your client, you're printing it and terminating the application
> but the server is expecting a response (even though the method has a void
> return value).

Ah, of course. Many thanks!

> To fix it, add the oneway qualifier to your setAnswerText: method.
> I think it would also be prudent to make sure that the client shuts down
> gracefully, i.e. call [connection invalidate] at least.
> You might want to go through your other methods and consider whether the
> oneway qualifier should apply. You could do the same for "bycopy".

Will do. Thanks again!

Hamish
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: pointers in objective-c?
  • Next by Date: Re: pointers in objective-c?
  • Previous by thread: Re: pointers in objective-c?
  • Next by thread: Putting a spinning progress indicator in a outline
  • Index(es):
    • Date
    • Thread