On Dec 3, 2009, at 11:14 AM, Sébastien Stormacq wrote:

I totally agree with you
Here is my stack trace

Frame 15 is the last line from my code, it calls [NSURL urlWithString] (frame 14)

9 libobjc.A.dylib 0x00006e54 objc_exception_throw + 104 10 CoreFoundation 0x00026b2c +[NSException raise:format:arguments:] + 76 11 CoreFoundation 0x00026acc +[NSException raise:format:] + 24 12 Foundation 0x0005a2d6 -[NSURL initWithString:relativeToURL:] + 246 13 Foundation 0x0005a154 +[NSURL URLWithString:relativeToURL:] + 28 14 Foundation 0x0005a12a +[NSURL URLWithString:] + 10 15 Maxi80 0x000045a4 -[Maxi80ViewController loadStreamingURL]

You're passing nil to URLWithString:, due to some underlying bug in your program. That is the only case where that method will throw an exception.

You're also crashing because you haven't set up an exception handler on this thread. Any time you implement an NSThread entry point you should wrap the outer method in an @try{ ... }...@catch(...) { } so that exceptions don't go uncaught and crash your app. (The handler should notify the user of the exception -- on the main thread! -- and offer to quit the app.)

—Jens

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to