Re: Distant object on server thread
Re: Distant object on server thread
- Subject: Re: Distant object on server thread
- From: James Chen <email@hidden>
- Date: Wed, 26 May 2004 18:40:11 +0800
Hi,
How about send enableMultipleThreads to the connection on server side
but not client.
HTH,
James
------------------------------------
Ulead Systems Inc.
James Chen
Software Engineer
Image Div.
------------------------------------
On May 26, 2004, at 2:24 PM, A$4Y?n wrote:
>
Hi,
>
>
I have a DO (distributed object) client message a server, giving the
>
server an NSArray of objects. The server spawns a new thread to process
>
the NSArray. But the first attempt to use one of the array objects in
>
the thread results in the server logging an exception, then crashing
>
(client is unaffected):
>
>
Uncaught exception: <NSObjectInaccessibleException> NSDistantObject
>
access attempted from another thread
>
>
Ok, I thought this was simply fixed by using -enableMultipleThreads
>
from the client side before sending the message. But it makes no
>
difference. Using bycopy makes no difference. The old hack of casting
>
the NSArray to an unsigned long results in EXC_BAD_ACCESS.
>
>
Please help!
>
-DW
>
>
_____________________________________________________________________
>
?9;[ FmAvAv?! 8^@O@; :83;<<?d - >_HD! 8^@O
>
http://mail.yahoo.co.kr
>
=EBw,A_0mBw,Aw0E7! 8E90@L GQ@Z8.?! - >_HD! @Z5?Bw
>
http://autos.yahoo.co.kr/autos/
>
_______________________________________________
>
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.
_______________________________________________
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.