PDA

View Full Version : App is crashing with new SDK (3.0)




detz
May 27, 2009, 08:31 AM
I get this.

bool _WebTryThreadLock(bool), 0x39263a0: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...


Which I've tracked down to a function call in a thread that updates the progress bar. I guess it's complaining because I'm updating the interface from a separate thread but how else should I handle updating the progress bar?



Menge
May 27, 2009, 08:33 AM
look at performSelectorInMainThread in the ref docs :) call that from your thread to update the progress bar