• 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
NSConnection problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSConnection problem


  • Subject: NSConnection problem
  • From: Eivind Andersen <email@hidden>
  • Date: Mon, 3 Nov 2003 01:34:10 +0100

hi,

I have a problem with a simple client-server program I'm making as a
part of a student project.

To communicate between the two I use Distributed Objects (NSConnection).

When a client sends sends an object to the server, it works fine the
first time, but fails the second time. (?) (The client should send
objects to the server every 15 seconds). The clients simply runs a
method on the server every 15 sec. The first

In the debugger i can see that the [NSInvocation dealloc] and
[NSInvocation invalidate] are run by the server, right before the it
tries to send objc_msgsend. (not sure whereto and why)

According to the documentation the invalidate method does the following:

Stops the receiver from ever firing again and removes it from any run
loops. This is the only way to remove a timer from an NSRunLoop.

The receiver releases its references to the target and userInfo objects
at this point.

I'm not exactly sure what that means, but I doesn't sound like
something I would like the server to do.

It there anyone out there who maybe knows what to do? I would be
grateful for any help!

Best regards,

Eivind Andersen
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: kEADDRINUSEErr and OTConnect() confusion...
  • Next by Date: Re: OpenTransport behaviour under X
  • Previous by thread: Re: kEADDRINUSEErr and OTConnect() confusion...
  • Next by thread: Re: OpenTransport behaviour under X
  • Index(es):
    • Date
    • Thread