• 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
Re: NSConnection, where'd my proxy go?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSConnection, where'd my proxy go?


  • Subject: Re: NSConnection, where'd my proxy go?
  • From: Bill Bumgarner <email@hidden>
  • Date: Mon, 10 Jun 2002 14:46:31 -0400

As such, the only difference between your code and the working code from Xoptimize is the creation of the thread?

That would indicate that it is the creation of the thread that is causing the problem. I.e. you need to create an NSThread (which is really just a wrapper around a pthread). What happens if you call [NSThread currentThread] from the pthreads spawned thread prior to doing any of the connection stuff?

It would be interesting to have a minimal example demonstrating failure as this would seem to be a bug in the Foundation's handling of threads and, as such, should be filed off to bugreport.apple.com.

b.bum

On Monday, June 10, 2002, at 02:38 PM, Chris DeSalvo wrote:

I tried that. I get the NSConnection back ok. However, when I try to call
rootProxy: on it I get the following exception:

2002-06-10 11:36:02.955 D2 X[2962] *** Uncaught exception:
<NSObjectInaccessibleException> NSDistantObject accessed attempted from
another thread

No matter what I do I can't get the proxy for that connection. Here is some
more background. The worker thread is a pthread that is part of a big nasty
chunk of source that I have to share with several other platforms and apps
and can't easily modify.
_______________________________________________
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.

References: 
 >Re: NSConnection, where'd my proxy go? (From: Chris DeSalvo <email@hidden>)

  • Prev by Date: Re: NSConnection, where'd my proxy go?
  • Next by Date: Re: Objective-C Specification
  • Previous by thread: Re: NSConnection, where'd my proxy go?
  • Next by thread: Re: NSConnection, where'd my proxy go?
  • Index(es):
    • Date
    • Thread