Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView crash?



On Friday, Nov 29, 2002, at 08:27AM, Alex Rice <email@hidden> wrote:

>I occasionally get this crash with the stack trace apparently deep
>within the guts of NSOutlineView. I can't make it occur it repeatably,
>and it's kinda got me wondering if it's something in my code, or in
>NSOutlineView. It occurs when I collapse an item with several children.
>
>Exception: EXC_BAD_ACCESS (0x0001)
>Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000009
>
>Thread 0 Crashed:
> #0 0x9013236c in CFRetain
> #1 0x901424ac in CFDictionaryAddValue
> #2 0x90141720 in CFDictionaryCreate
> #3 0x907f1bec in -[NSPlaceholderDictionary
>initWithObjects:forKeys:count:]
> #4 0x907f74ec in +[NSDictionary dictionaryWithObjectsAndKeys:]
> #5 0x9323db84 in -[NSOutlineView _postItemDidCollapseNotification:]

The crash happens whilst the outline view is assembling the dictionary for
the itemDidCollapseNotification so to me that would indicate a data source
problem. Perhaps the item you are collapsing has been autoreleased between
being supplied from the OutlineView's data source and when you click on
its disclosure triangle?

--
Julian Barkway,
Zurich,
Switzerland.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.