Re: Unvending a DO?
Re: Unvending a DO?
- Subject: Re: Unvending a DO?
- From: "Rafael K. Kobylinski" <email@hidden>
- Date: Thu, 21 Mar 2002 17:34:39 +0100
At 0:50 Uhr +0100 16.03.2002, Rafael K. Kobylinski wrote:
One thing that I could not get to work is to get rid of the
connection in a clean manner when the client quits. While, as
described above, just releasing the connection usually works, for
some reason it does not work in my applicationShouldTerminate:
implementation.
This problem was actually a kind of bug in my code, but I feel that I
should have got an exception from the framework, and I did not.
In applicationShouldTerminate:, my client was calling a oneway server
method to tell that it is going away and then returned NSTerminateNow
- this resulted in immediate termination.
The server would receive the message, and call a client accessor
method in that message, while the client was already terminated. This
resulted in a very funny behaviour on the server side: no exception
was thrown, and the server would immediately return to the main run
loop.
I "fixed" this problem by removing the oneway keyword - I would feel
better though, if I could get an exception in the server method.
--
Rafael K. Kobylinski Email: email@hidden
Institut f|r Informatik Tel. : ++ 49 89 289 22391
Technische Universitdt M|nchen Cell.: ++ 49 177 7 495020
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.