Re: Exception not being caught
Re: Exception not being caught
On 21 Mar 2011, at 04:11, Rick Mann wrote:
>> Can you give us the exception report?
>> Is it an NSException instance?
>
> Yes. It is raised by this line of code:
>
> [NSException raise:NSInvalidArchiveOperationException format:@"Network error domain:%@ code:%d", [requestError domain], [requestError code]];
As you are raising the exception then you could try raising the exception experimentally when the operation starts to help source the problem.
You mentioned break points earlier. What happens when the code runs outside of the development environment.
>
>> This might indicate that your exception is not occurring on your main thread.
>
> It is most certainly NOT occurring on the main thread. Never said it was (in fact, I figured the bit about NSOperation would imply it was not).
>
Now we know.
Have you tried using NSExceptionHandler? It might provide some insight.
If the problem persists you could post more code.
If it's a fundamental issue it should be demonstrable in a short test project.
Regards
Jonathan Mitchell
Developer
Mugginsoft LLP
http://www.mugginsoft.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden