OK... never mind, everyone.  When I saw my own post, I recognized the 
"autorelease" as the problem.

Eric

On Feb 14, 2010, at 7:48 PM, Eric Smith wrote:

> OK... I've got what must be a trivial problem.  I'm running two applications 
> on the same computer (intel iMac).  I'm just cutting and pasting code from 
> the XCode help pages, describing how to vend and obtain a distributed object. 
>  Code is below:
> 
> Application #1:
> 
>       myConduit = [[ServerConduit alloc] init];
>       conduitConnection = [[NSConnection new] autorelease];
>       [conduitConnection setRootObject:myConduit];
>       if ([conduitConnection registerName:@"rvserver"] == NO) {
>               /* Handle error. */
>               printf("\nno\n");
>       }
> 
> 
> Application #2:
> 
>       id theProxy;
>       BOOL valid;
>       NSConnection* theConnection = [NSConnection 
> connectionWithRegisteredName:@"rvserver" host:nil];
>       theProxy = [theConnection rootProxy];
> 
> 
> All lines of App1 execute with no error, and there are no nil returned values.
> 
> App2 gets a valid connection, but hangs when getting the rootProxy.  It's so 
> simple that it defies debugging!  Can anyone help?
> 
> Regards,
> Eric
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/eric_h_smith%40mac.com
> 
> This email sent to eric_h_sm...@mac.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to