Skip navigation.
 
mlRe: Threading - How its done?
FROM : Michael Vannorsdel
DATE : Tue May 06 13:10:45 2008

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.

Related mailsAuthorDate
mlRE: Threading - How its done? Karl von Moller May 6, 04:17
mlRe: Threading - How its done? John Calhoun May 6, 04:35
mlRe: Threading - How its done? Michael Vannorsdel May 6, 06:28
mlRe: Threading - How its done? Karl von Moller May 6, 06:46
mlRe: Threading - How its done? Michael Vannorsdel May 6, 07:12
mlRe: Threading - How its done? Karl von Moller May 6, 08:07
mlRe: Threading - How its done? Michael Vannorsdel May 6, 12:19
mlRe: Threading - How its done? Karl von Moller May 6, 13:04
mlRe: Threading - How its done? Michael Vannorsdel May 6, 13:10
mlRe: Threading - How its done? Karl von Moller May 6, 13:19
mlRe: Threading - How its done? Michael Vannorsdel May 6, 14:00
mlRe: Threading - How its done? Karl von Moller May 6, 15:25
mlRe: Threading - How its done? Michael Vannorsdel May 6, 16:52
mlRe: Threading - How its done? Michael Ash May 6, 18:34
mlRe: Threading - How its done? Chris Hanson May 8, 07:26
mlRe: Threading - How its done? Michael Vannorsdel May 8, 08:20
mlRe: Threading - How its done? Chris Hanson May 8, 08:45
mlRe: Threading - How its done? Michael Vannorsdel May 8, 09:16
mlRe: Threading - How its done? Scott Ribe May 8, 17:33
mlRe: Threading - How its done? Michael Vannorsdel May 9, 04:49
mlRe: Threading - How its done? Timothy Reaves May 9, 17:49