Folks;

On Tiger, I have an app that has a popup button which allows a user to make a selection from a supporting array. Once a new selection is made a collection of images are redraw in a view.
Has been working reasonably well...

Now sometimes, not consistently, when the selection is made the app will crash.
Sometimes I see the following in the console log:
2008-03-19 01:36:20.231 XYZ[3035] *[XYZMainWindowController setUserSelectedData]
XYZ(3035,0xa000d000) malloc: *** error for object 0x315730: double free
XYZ(3035,0xa000d000) malloc: *** set a breakpoint in szone_error to debug

I have the following environment variables set:
NSZombieEnabled(YES)
MallocStackLogging(1)

and these Global Breakpoints set:
[NSException raise]
szone_error
[NSObject setNilValueForKey]
-[_NSZombie release]
malloc_printf

The crash doesn't appear to fire any of these breakpoints and leaves only this meager trace in the stack:
#0      0x90a594c7 in objc_msgSend
#1      0x00315730 in ??
#2      0x90824f84 in __CFDictionaryDeallocate
#3      0x9080e0c6 in _CFRelease
#4      0x927dc96f in NSPopAutoreleasePool
#5      0x9328fab1 in -[NSApplication run]
#6      0x932839c0 in NSApplicationMain#7       0x00405ffc in main at main.m:18

If I step thru the code it eventually starts off into the assembly code for handling the interface and bindings and as you all are well aware there is an astonishing amount of such code underlying the Mac OS interface....

If I pause the app and enable a breakpoint on [NSObject release] I get so many breaks that I just can't make any headway. How DO I -- most efficiently -- figure out what dictionary is the culprit in frame 2 above?

Thanks for any help!
Steve

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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