bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSObjectInaccessibleException


From: Richard Frith-Macdonald
Subject: Re: NSObjectInaccessibleException
Date: Fri, 19 Sep 2003 06:26:53 +0100


On Thursday, September 18, 2003, at 10:28 PM, Stefan Urbanek wrote:

Hi,

AgentFarms stopped to work. I am getting this:

/usr/GNUstep/Local/Tools/afsimulator: Uncaught exception NSObjectInaccessibleException, reason: Forwarding message in wrong thread

Were there any forwarding/thread related changes in -base? What does it mean?

It should indicate that code executing in one thread is trying to send a message over an NSConnection which was created in another thread, and the NSConnection has not had multiple threads enabled. If you want to use a connection in more than one thread, you should call -enableMultipleThreads on it.

Previously, the code did not raise the exception it should ... which would sometimes cause the calling thread to hang.

Perhaps some connections should have -enableMultipleThreads called automatically (when an initialiser returns an existing connection rather than creating a new one) ... I don't know what the Apple behavior is in this case.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]