• 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: NSMutableArray access problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableArray access problem


  • Subject: Re: NSMutableArray access problem
  • From: Andy Lee <email@hidden>
  • Date: Sat, 3 Aug 2002 21:40:24 -0400

At 6:07 PM -0700 8/3/02, Christopher Corbell wrote:
- (int)numberOfRowsInTableView:(NSTableView *)tableView
{
printf("m_records: 0x%x\n", (unsigned)m_records);
printf("[m_records count]: %d\n", (int)[m_records count]);
return [m_records count];
}

Here is the runtime output

m_records: 0x1b488c0
[m_records count]: 0
m_records: 0x1b488c0
[m_records count]: 0
m_records: 0x1b488c0
[m_records count]: 0
window is loaded.
m_records: 0x1b488c0

ProtoTable has exited due to signal 10 (SIGBUS).

This looks like a great candidate for a missing retain. Are you retaining m_records?

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

References: 
 >NSMutableArray access problem (From: Christopher Corbell <email@hidden>)

  • Prev by Date: NSMutableArray access problem
  • Next by Date: Re: Who is releasing my CFAllocator?
  • Previous by thread: NSMutableArray access problem
  • Next by thread: Design Approach Question
  • Index(es):
    • Date
    • Thread