• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: strange object corruption...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange object corruption...


  • Subject: Re: strange object corruption...
  • From: Fritz Anderson <email@hidden>
  • Date: Fri, 25 Jul 2003 19:25:21 -0500

Sounds as though the array had been released. Did you send it an autorelease? Did you allocate it with one of the convenience class methods (array, arrayWithCapacity:, arrayWithObjects:, ...), and not retain it?

-- F

On Friday, 25 July 2003, at 6:02 PM, James Dessart wrote:

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?
_______________________________________________
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.

  • Follow-Ups:
    • Re: strange object corruption...
      • From: James Dessart <email@hidden>
References: 
 >strange object corruption... (From: James Dessart <email@hidden>)

  • Prev by Date: Re: strange object corruption...
  • Next by Date: Re: Forum for advanced Cocoa questions
  • Previous by thread: Re: strange object corruption...
  • Next by thread: Re: strange object corruption...
  • Index(es):
    • Date
    • Thread