My app crashes on Iphone SDK 3.2

Posted by Mladen on Stack Overflow See other posts from Stack Overflow or by Mladen
Published on 2010-05-24T12:53:52Z Indexed on 2010/05/24 13:01 UTC
Read the original article Hit count: 229

Filed under:
|
|

Hi Guys, My app worked ok on iPhone SDK 3.1. However, when I try to run it in 3.2 simulator, I get the following error and it crashes:

bool _WebTryThreadLock(bool), 0x5148280: 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... Program received signal: “EXC_BAD_ACCESS”.

When I debug it, it leads me to this peace of code:

- (void)LoginViewToCheckView:(id)sender {
CheckViewController *tempTestController = [[CheckViewController alloc] initWithStyle:UITableViewStyleGrouped];
[tempTestController setDelegate:self];
[self setCheckViewController: tempTestController];
[tempTestController release];

[navigationController pushViewController:checkViewController animated:YES];}

Other thing worth mentioning is maybe that I am calling this function from a separate thread.

Any ideas what could be wrong?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ui