Re: sending over DO seems to make main process block?



Wizumwalt@xxxxxxxxx <Wizumwalt@xxxxxxxxx> wrote:

[NSConcretePortCoder dispatch]
<dyld_stub_objc_exception_throw>

Two things come to mind:

1) DO is one of the few places in Cocoa where exceptions are thrown that
are worth catching. For instance, an exception may be thrown when the
connection times out. Use code like this:

@try {
// try to send message over DO
@catch (NSException *e) {
NSLog(@"%@", [e localizedDescription]);
// handle connection failure here
}

2) When designing your DO communication scheme, you must take care to
avoid deadlock. For instance, if after sending a oneway void message,
the sender expects to be called back from the receiver, it (the sender)
should not be stuck in a blocking call somewhere... When you are using
DO within 1 application the potential for deadlock seems greater.

patrick
.



Relevant Pages

  • Re: Reflection problem
    ... I'm pretty sure that there are no exceptions being thrown while ... >> Incoming mail is certified Virus Free. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: RBL filtering configuration
    ... Connection Filtering> Exceptions and hit Help it is stated that this ... Exchange Server checks the Global ... > then returns the following error message to the sender: ...
    (microsoft.public.exchange2000.admin)
  • Re: Frustration with exceptions
    ... called Sender. ... is equipped to handle those exceptions. ... Now, number 2 is a bit tricky, because not all languages force the client to specify the exceptions it can throw, but I would say the client has in turn to tell its clients what can go wrong ... you would have no guarantee that an event has a callback. ...
    (comp.object)
  • RE: Application.ThreadException not working
    ... been caused by exceptions in threads, most likely due to trying to ... void CurrentDomain_UnhandledException(object sender, ... private void exceptionButton_Click ... Which is just a windows form that has 2 buttons, crossThreadButton & ...
    (microsoft.public.dotnet.framework)
  • Application.ThreadException not working
    ... been caused by exceptions in threads, most likely due to trying to ... void CurrentDomain_UnhandledException(object sender, ... private void exceptionButton_Click ... Which is just a windows form that has 2 buttons, crossThreadButton & ...
    (microsoft.public.dotnet.framework)