Re: Exception
Re: Exception
- Subject: Re: Exception
- From: Alexander von Below <email@hidden>
- Date: Fri, 18 Jul 2008 20:04:31 +0200
The diagnosis is right in front of your eyes:
-[NSCFString substringWithRange:]: Range or index out of bounds
You are calling "substringWithRange:" with a range that is out of
bounds.
There are two ways to handle this
1) Check if your range is valid before you use it
2) Handle Exceptions yourself
Alex
Am 18.07.2008 um 20:00 schrieb Michael:
Hi All,
I am intermittently getting this Exception, using the "Standard
Tool". Could anyone hazard a diagnosis, and perhaps a way to prevent
this.
Thanks.
7/18/08 9:36:26 AM Xcode[1816] ** INTERNAL ERROR: Uncaught Exception
**
Exception: *** -[NSCFString substringWithRange:]: Range or index out
of bounds
Stack:
0 0x9497add0 __raiseError (in CoreFoundation)
1 0x93ca376c objc_exception_throw (in libobjc.A.dylib)
2 0x9497ace0 +[NSException raise:format:] (in CoreFoundation)
3 0x9497ad18 +[NSException raise:format:] (in CoreFoundation)
4 0x946650c0 -[NSCFString substringWithRange:] (in Foundation)
5 0x0024eef0 -[XCTextView tokenizableItemsForRange:] (in XcodeEdit)
6 0x0024a858 -[XCTextView _autoHighlightTokenWithTimer:] (in
XcodeEdit)
7 0x9468eb08 __NSFireTimer (in Foundation)
8 0x9490d9d4 CFRunLoopRunSpecific (in CoreFoundation)
9 0x91a42730 RunCurrentEventLoopInMode (in HIToolbox)
10 0x91a424bc ReceiveNextEventCommon (in HIToolbox)
11 0x91a42394 BlockUntilNextEventMatchingListInMode (in HIToolbox)
12 0x94e1a05c _DPSNextEvent (in AppKit)
13 0x94e19a14 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
14 0x94e136d0 -[NSApplication run] (in AppKit)
15 0x94de40d4 NSApplicationMain (in AppKit)
16 0x000025c4
7/18/08 9:36:25 AM [0x0-0x51051].com.apple.Xcode[1816]
Xcode(1816,0xf0103000) malloc: free_garbage: garbage ptr =
0x2dfb1f0, has non-zero refcount = 1
7/18/08 9:36:25 AM [0x0-0x51051].com.apple.Xcode[1816]
Xcode(1816,0xf0103000) malloc: free_garbage: garbage ptr =
0x3262a30, has non-zero refcount = 1
7/18/08 9:36:25 AM [0x0-0x51051].com.apple.Xcode[1816]
Xcode(1816,0xf0103000) malloc: free_garbage: garbage ptr =
0x327d210, has non-zero refcount = 1
7/18/08 9:36:25 AM [0x0-0x51051].com.apple.Xcode[1816]
Xcode(1816,0xf0103000) malloc: free_garbage: garbage ptr =
0x32b9770, has non-zero refcount = 1
7/18/08 9:36:29 AM [0x0-0x51051].com.apple.Xcode[1816]
Xcode(1816,0xf0103000) malloc: free_garbage: garbage ptr =
0x2330570, has non-zero refcount = 1
7/18/08 9:36:29 AM [0x0-0x51051].com.apple.Xcode[1816]
Xcode(1816,0xf0103000) malloc: free_garbage: garbage ptr =
0x2d25930, has non-zero refcount = 1
7/18/08 9:36:40 AM com.apple.launchd[86]
([0x0-0x51051].com.apple.Xcode[1816]) Exited with exit code: 1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Exception (From: Michael <email@hidden>) |