opensubscriber
   Find in this group all groups
 
Unknown more information…

c : cocoa-dev@lists.apple.com 7 January 2006 • 6:11AM -0500

Distributed Object, exception failure not handled properly
by George Lawrence Storm

REPLY TO AUTHOR
 
REPLY TO GROUP




I am using Distributed Objects to communicate in a client/server  
model. Everything is working as expected in normal use.

I am currently working on testing my exceptions, in the case of one  
exception (server unavailable) I am getting a failure (56) which is  
bailing out of my program without being caught in my handler.

Is there a workaround (possibly a pre-test), or am I wrapping this  
improperly?

     NS_DURING
         // Get the proxy
         proxy = [[connection rootProxy] retain]; // failure line
...
     NS_HANDLER
         ...
     NS_ENDHANDLER

-----

George Lawrence Storm
Macintosh Applications Development
Edmonds (Seattle), Washington
E-mail: <keencoyote@eart...>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (Cocoa-dev@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/subscriber%40opensubscriber.com

This email sent to subscriber@open...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.