开发者

Program received SIGKILL error in the main.m

I am receiving an 开发者_开发知识库error in my main thread when i am trying to load a table with data being supplied from a different thread than main thread.

#import <UIKit/UIKit.h>

int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;

please could anyone help me solving this.... }


Did you enable NSZombies?

If not here is how you do it?

  • Goto: Product-> Edit scheme
  • Choose Ran tab
  • Select "Arguments"
  • In the Environment Variables add
  • NSZombieEnabled and set its value to YES

Run your code. It should tell you where you have an error.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜