Re: ALLOC/FREE problems with a NIB..
Re: ALLOC/FREE problems with a NIB..
- Subject: Re: ALLOC/FREE problems with a NIB..
- From: Martin Wierschin <email@hidden>
- Date: Tue, 03 Jan 2012 15:50:17 -0800
Hi Robert,
> I seem to be crashing with the following message:
> malloc: *** error for object 0x104839c08: incorrect checksum for freed object - object was probably modified after being freed.
> *** set a breakpoint in malloc_error_break to debug
>
> However, malloc_error_break never gets called.
> I have a malloc stack log going, and when I do a malloc_history for my object, I get a tonne of the following (this is the last entry):
The last entry in malloc_history isn't necessarily the cause of the problem. You'll want to inspect and think about all the objects that ever existed at 0x104839c08, especially those you control more directly.
It's very unlikely that the NIB loading code is the source of your problems; the NIB loading code is just reusing the memory address. What's more likely is that some object/memory you allocated earlier was deallocated, and your code is still incorrectly trying to use this now deallocated object.
Have you tried using NSZombie yet?
~Martin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden