• 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: connection when invalid while waiting for a reply
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: connection when invalid while waiting for a reply


  • Subject: Re: connection when invalid while waiting for a reply
  • From: "William Irving Zumwalt" <email@hidden>
  • Date: Thu, 28 Dec 2006 21:21:00 -0600


- (void)launchServerThreads { [MyServer startNetworkThreadWithTag:0 forController:self]; }


Few hints:


1. What startNetworkThreadWithTag:forController: returns?

It doesn't return anything. It's supposed to call connectWithPorts: which will eventually set a pointer called 'server' with the new instance. Then I have that handle (pointer) to work w/ as long as I need.

2. How much time that object lives?

It seems to live after it's been started till the minute I send the thread a command through the ports by clicking another button. Then I see it go away in the thread viewer.

3. How can you make it live longer?

Shouldn't I be asking how to make it not *somehow* die? It's supposed
to be running. It's supposed to be already living.

What exactly does "connection went invalid while waiting for a reply"
mean? Did it somehow run these methods w/o me calling them? It should
only get here when I tell the thread to stop and I don't see these
being called.

	[[connection receivePort] invalidate];
	[[connection sendPort] invalidate];
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >connection when invalid while waiting for a reply (From: "William Irving Zumwalt" <email@hidden>)
 >Re: connection when invalid while waiting for a reply (From: John Stiles <email@hidden>)
 >Re: connection when invalid while waiting for a reply (From: "William Irving Zumwalt" <email@hidden>)
 >Re: connection when invalid while waiting for a reply (From: Nir Soffer <email@hidden>)

  • Prev by Date: Re: NSTreeControll and different entities
  • Next by Date: Re: Regarding Trash programming...
  • Previous by thread: Re: connection when invalid while waiting for a reply
  • Next by thread: Completely remove a window (from NSApp)?
  • Index(es):
    • Date
    • Thread