Think about it simply. A cell gets deallocated just like any other object - 
when its retain count goes to zero. If you're looking for a cell getting 
deallocated on a non-main thread, you're looking for a place release is being 
called on a non-main thread. I would think you could just override the dealloc 
method to help you track this situation in the debugger. Perhaps add an 
NSAssert([NSThread isMainThread], @"wups"); in there.

Luke

On Jan 23, 2012, at 11:38 AM, Laurent Daudelin wrote:

> Hello.
> 
> I'm trying to track a crash in our app where we have a custom UITableView 
> cell that contains a UITextView because we need the ability to display and 
> open links that might be in the text we're displaying in the text view.
> 
> The problem is that somehow, the cell is deallocated and WebKit complains 
> that it's been unable to obtain the web lock from a thread other than the 
> main thread or the web thread when it's deallocated. I have reviewed the code 
> and checked all the "reload…" message we might send to the table view that 
> could cause the deallocation of its cells but all of those calls are executed 
> from the main thread using [[NSOperationQueue mainQueue] 
> addOperationWithBlock:^{…}] so I'm stumped. Are there any other situations 
> where UITableView cells would be deallocated? The view displays and the view 
> isn't unloaded due to memory warning or any other situation.
> 
> -Laurent.
> -- 
> Laurent Daudelin
> AIM/iChat/Skype:LaurentDaudelin                               
> http://www.nemesys-soft.com/
> Logiciels Nemesys Software                                    
> laur...@nemesys-soft.com
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/luketheh%40apple.com
> 
> This email sent to luket...@apple.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to