Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: connection when invalid while waiting for a reply




- (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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.