• 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
Distant object on server thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Distant object on server thread


  • Subject: Distant object on server thread
  • From: 정다운 <email@hidden>
  • Date: Wed, 26 May 2004 15:24:39 +0900 (JST)

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.


  • Follow-Ups:
    • Re: Distant object on server thread
      • From: Peter Fischer <email@hidden>
    • Re: Distant object on server thread
      • From: James Chen <email@hidden>
  • Prev by Date: Re: = and ==
  • Next by Date: Re: [ANN] Searchable Cocoa-Dev Web Archive (again)
  • Previous by thread: Re: NSFontPanel act on it's own accessory view?
  • Next by thread: Re: Distant object on server thread
  • Index(es):
    • Date
    • Thread