Re: strange object corruption...
Re: strange object corruption...
- Subject: Re: strange object corruption...
- From: Greg Titus <email@hidden>
- Date: Fri, 25 Jul 2003 17:09:50 -0700
On Friday, July 25, 2003, at 04:02 PM, James Dessart wrote:
I'm experiencing some strange object corruption, and I was wondering
if someone could help me with it. I've created a table view in
Interface Builder, and an instance of my data source object. The data
source has a mutable array that holds some of its items, that's
created in the object's init method.
When numberOfRowsInTableView is called, I call the count method on the
array. This works fine until a certain point, when the method call
causes an EXC_BAD_ACCESS to be triggered in objc_msgSend. I've
checked the variable values, and the address of self, along with the
address of the array, have not changed. However, the array's isa
member changes from 0xb0bb0 to some strange value, which is never the
same. The last time I ran it, it was 0x3ea0000, and previously it had
given me 0x100.
The thing is, I never manipulate the array during that time. Not
once. In fact, the data source does very little up until that point,
if anything, because it crashes before it even contains data, but
after it has been created.
Any ideas?
Your array got deallocated because you weren't retaining it. How are
you creating the mutable array in the first place?
Hope this helps,
- Greg
_______________________________________________
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.