bug-gnustep
[Top][All Lists]
Advanced

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

[bug #27128] rootProxy cannot be called twice on an NSConnection


From: Michael Johnston
Subject: [bug #27128] rootProxy cannot be called twice on an NSConnection
Date: Wed, 05 Aug 2009 09:56:41 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17

Follow-up Comment #2, bug #27128 (project gnustep):

Unfortunately I don't have any easy to run test case at the moment, but I
think my problem may be explained by your second point.

I don't explicitly release the proxy when I first call rootProxy. I assume
the method returns an autoreleased object that is (or is a copy of) some
object internally retained by the NSConnection instance. 

However between the two times I call rootProxy the autorelease pool is
emptied. So if the rootProxy is autoreleased when it is first returned (and
not retained by the NSConnection that returned it) it is destroyed in my case
- and hence the connection would be invalidated as you say.

Perhaps if you empty the autorelease pool between your calls you may see the
problem?

So should the rootProxy docs say ... "The returned proxy is not retained by
the receiver. If it is deallocated the connection that supplied it is
invalidated"?


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27128>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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