• 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: Threading - How its done?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threading - How its done?


  • Subject: Re: Threading - How its done?
  • From: Michael Vannorsdel <email@hidden>
  • Date: Tue, 6 May 2008 05:10:45 -0600

Try changing your thread detaching to just calling the method directly so it's in the same thread, lets make sure it's a threading issue and not something else.


On May 6, 2008, at 5:04 AM, Karl von Moller wrote:

Hi Michael

Yes I get this when I change the selection in the table view too quickly:

"encountered unexpected object type: 7. missing or invalid object number. invalid `Kids' array: missing or invalid dictionary at index 0."

gdb gives all sorts of different reports on what caused it but the one that comes up the most is: mach_msg_trap

I did try to introduce a delay to see whether this could help but still got a crash. selected file in the code below is my method that does all the selection handling in the table view.

- (void)tableViewSelectionDidChange: (NSNotification *)notification
{
[self performSelector:@selector(selectedFile:) withObject:nil afterDelay:0.1];
}


I will do the UI animation in the main thread as you suggest.

_______________________________________________

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


  • Follow-Ups:
    • Re: Threading - How its done?
      • From: Karl von Moller <email@hidden>
References: 
 >RE: Threading - How its done? (From: Karl von Moller <email@hidden>)
 >Re: Threading - How its done? (From: Michael Vannorsdel <email@hidden>)
 >Re: Threading - How its done? (From: Karl von Moller <email@hidden>)
 >Re: Threading - How its done? (From: Michael Vannorsdel <email@hidden>)
 >Re: Threading - How its done? (From: Karl von Moller <email@hidden>)
 >Re: Threading - How its done? (From: Michael Vannorsdel <email@hidden>)
 >Re: Threading - How its done? (From: Karl von Moller <email@hidden>)

  • Prev by Date: Re: Threading - How its done?
  • Next by Date: Re: Threading - How its done?
  • Previous by thread: Re: Threading - How its done?
  • Next by thread: Re: Threading - How its done?
  • Index(es):
    • Date
    • Thread