2011-06-20 26 views
0

我在主線程中接收到一個錯誤,當我嘗試從不同於主線程的線程提供的數據加載表時。程序在main.m中收到SIGKILL錯誤

#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; 

請任何人都可以幫我解決這個.... }

+3

那麼在這種情況下,您需要在獲取數據的位置粘貼一些代碼。 –

回答

0

你能NSZombies?

如果不是這裏如何做到這一點?

  • 轉到:產品展示 - >編輯方案
  • 選擇冉標籤
  • 選擇 「參數」
  • 在環境變量添加
  • NSZombieEnabled並將其值設置爲YES

運行你的代碼。它應該告訴你哪裏有錯誤。

相關問題