Re: Array exception when changing the bounds size of a view
Re: Array exception when changing the bounds size of a view
- Subject: Re: Array exception when changing the bounds size of a view
- From: "M. N. Jackson" <email@hidden>
- Date: Thu, 1 Mar 2007 11:41:08 -0600
I implemented the ExceptionHandler class and go the following
exception stack, however it seems to confirm that the problem lies in
the AppKit. Can anyone deduce the problem from this stack trace?
2007-03-01 11:36:30.084 Acts6[5143] NSExceptionHandler has recorded
the following exception:
NSRangeException -- *** -[NSCFArray objectAtIndex:]: index (1) beyond
bounds (1)
Stack trace: 0x964d0f10 0x92979e5c 0x9293d050 0x9374e938
0x9374e9a8 0x9374e9a8 0x9374e9a8 0x9374e9a8 0x9374e9a8
0x9376f044 0x93748054 0x9373d348 0x9373d1b8 0x9373d064
0x907dc73c 0x907dc9dc 0x907dc47c 0x93205740 0x93204d4c
0x93204c40 0x93709ae4 0x937097a8 0x93705cec 0x937f687c
0x00012f90 0x0000251c 0x00002220 0x00000001
2007-03-01 11:36:30.088 Acts6[5143] *** -[NSCFArray objectAtIndex:]:
index (1) beyond bounds (1)
_NSExceptionHandlerExceptionRaiser (in ExceptionHandling)
+[NSException raise:format:] (in Foundation)
-[NSCFArray objectAtIndex:] (in Foundation)
-[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:] (in AppKit)
-[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:] (in AppKit)
-[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:] (in AppKit)
-[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:] (in AppKit)
-[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:] (in AppKit)
-[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:] (in AppKit)
-[NSThemeFrame
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:] (in AppKit)
-[NSView
_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
(in AppKit)
-[NSView displayIfNeeded] (in AppKit)
-[NSWindow displayIfNeeded] (in AppKit)
__handleWindowNeedsDisplay (in AppKit)
___CFRunLoopDoObservers (in CoreFoundation)
___CFRunLoopRun (in CoreFoundation)
_CFRunLoopRunSpecific (in CoreFoundation)
_RunCurrentEventLoopInMode (in HIToolbox)
_ReceiveNextEventCommon (in HIToolbox)
_BlockUntilNextEventMatchingListInMode (in HIToolbox)
__DPSNextEvent (in AppKit)
-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in
AppKit)
-[NSApplication run] (in AppKit)
_NSApplicationMain (in AppKit)
_main (in Acts6) (main.m:23)
start (in Acts6)
start (in Acts6)
0x00000001 (in Acts6)
On Mar 1, 2007, at 10:21 AM, Shawn Erickson wrote:
On Mar 1, 2007, at 5:34 AM, M.N.Jackson wrote:
Has anyone experienced this problem? Any solutions or suggestions?
The exception I get in the Run Log is the following:
2007-03-01 07:25:21.874 Acts6[2899] *** -[NSCFArray
objectAtIndex:]: index (1) beyond bounds (1)
The exception doesn't crash the program in debug nor when I run
the executable from the finder.
Review the following to understand how to better debug what the
problem.
<http://developer.apple.com/documentation/Cocoa/Conceptual/
Exceptions/Tasks/ControllingAppResponse.html#//apple_ref/doc/uid/
20000473-1017104>
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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