Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Handling framework exceptions/errors?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling framework exceptions/errors?




On 29 Jun '08, at 9:56 AM, David Troy wrote:

I have a situation where I am loading arbitray data from network- supplied URLs. Sometimes the URLs contain Kanji unicode characters. When they do, my HTTP loading mechanism (which is built around NSURL* frameworks) dies with an exception deep inside of CFURLGetString.

That indicates either a bug in the frameworks, or that you're passing in illegal values.


Also, what do you mean by a URL containing Kanji characters? URLs can only contain ASCII; anything else should be escaped using "%". If you try to construct an NSURL from an invalid string, you'll get nil, and passing that nil URL into other framework calls could definitely cause exceptions/crashes.

Pasting in the backtrace from a crash log would be useful for diagnosing this.

—Jens_______________________________________________

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


References: 
 >Handling framework exceptions/errors? (From: David Troy <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.