Re: connection when invalid while waiting for a reply
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