2010-07-20 4 views
0

내비게이션 컨트롤러를 사용하고 있는데 내 첫 번째 뷰에는 chapter 유형의 데이터와 이 포함되어 있습니다. 사용자가 다음 중 하나를 선택하면 주제 유형의 다음보기로 이동하고 사용자가이 중 하나를 선택할 때 그것은 데이터의 일부 테이블 섹션 머리글과 눈금자 항목으로 구성되어 있어야합니다 ... 응용 프로그램이 표시되지 않습니다 그래서 내가 섹션을 세 번째보기 ... 콘솔은 일부 오류 로그를 보여주는 것입니다 내가 attatching이 주제를 선택하면 충돌지고 여기 .. ​​NSAUTORELEASENOPOOL로 인해 애플리케이션이 다운 됨

두 번째보기 didselect 행 방법 나는 여기에 변수를 변경할 때 그 영향을 o/p

당신의 방법은 다른 스레드에서 실행됩니다 아마 때문에
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 
    // Navigation logic -- create and push a new view controller 

    if(TviewController == nil) 
    TviewController = [[TopicRulesViewController alloc] initWithNibName:@"TopicRulesViewController" bundle:[NSBundle mainBundle]]; 

    Topic *bTopic = [bchapter.topics objectAtIndex:indexPath.row]; 
WHEN I CHANGED THIS VARIABLE BCHAPTER.TOPICS ITS GIVING EMPTY VIEW... 
     TviewController.aTopic = bTopic; 
    TVIEWCONTROLLER IS THE THIRD VIEW CONTROLLER .... 



    [self.navigationController pushViewController:TviewController animated:YES]; 
} 

[Session started at 2010-07-20 07:36:03 -0700.] 
2010-07-20 07:36:06.740 UpWrite[69558:207] No Errors 
2010-07-20 07:36:09.850 UpWrite[69558:207] No Errors 
2010-07-20 07:36:11.393 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3b675d0 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x5f29 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.396 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3b5a160 of class WebEditorUndoTarget autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317e9ee 0x317dd8d 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.397 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3910400 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317eaaa 0x317ea5c 0x317ddf3 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.400 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3953fc0 of class NSPathStore2 autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1e0d0 0x1d159 0x1d07a 0x317ddf3 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.402 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3b25240 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x2559f16 0x2559e08 0x317f9e2 0x317f548 0x25d0c1a 0x25d037a 0x25d02a5 0x25d020e 0x25cfa25 0x317ecc7 0x317eb36 0x317de71 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.403 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3b45a70 of class NSInvocation autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x25adf33 0x2be69c8 0x25adebb 0x25c2ec8 0x25c2d64 0x25c298b 0x25c290e 0x25d41d8 0x25cfa5c 0x317ecc7 0x317eb36 0x317de71 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.408 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3208a44 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x317d829 0x318204c 0x31815a5 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.409 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3208ae4 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317eaaa 0x318208c 0x31815d1 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.410 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3208a94 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x31820cc 0x3181655 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.411 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3208aa4 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x318210c 0x3181676 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.412 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3208a84 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317eaaa 0x318214c 0x3181697 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.414 UpWrite[69558:207] load data............. 
2010-07-20 07:36:11.414 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3208ad4 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317eaaa 0x318218c 0x31816e0 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.419 UpWrite[69558:207] view will appear........... 
2010-07-20 07:36:11.424 UpWrite[69558:207] height for row........... 
2010-07-20 07:36:11.425 UpWrite[69558:207] height for row........... 
2010-07-20 07:36:11.425 UpWrite[69558:207] height for row........... 
2010-07-20 07:36:11.425 UpWrite[69558:207] height for row........... 
2010-07-20 07:36:11.425 UpWrite[69558:207] height for row........... 
2010-07-20 07:36:11.425 UpWrite[69558:207] height for row........... 
2010-07-20 07:36:11.426 UpWrite[69558:207] height for row........... 
2010-07-20 07:36:11.426 UpWrite[69558:207] height for row........... 
2010-07-20 07:36:11.426 UpWrite[69558:207] height for row........... 
2010-07-20 07:36:11.427 UpWrite[69558:207] cell for row................. 
2010-07-20 07:36:11.421 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3208b14 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317eaaa 0x31821cc 0x3181768 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.427 UpWrite[69558:207] cell for row................. 
2010-07-20 07:36:11.429 UpWrite[69558:207] cell for row................. 
2010-07-20 07:36:11.429 UpWrite[69558:207] cell for row................. 
2010-07-20 07:36:11.429 UpWrite[69558:207] cell for row................. 
2010-07-20 07:36:11.430 UpWrite[69558:207] cell for row................. 
2010-07-20 07:36:11.430 UpWrite[69558:207] cell for row................. 
2010-07-20 07:36:11.428 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x396b900 of class NSPathStore2 autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1e0d0 0x3e18f 0x3e0da 0x318185a 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.436 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x1c8c600 of class NSCFBoolean autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x317d829 0x31822dc 0x31818c8 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.437 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x1c8c608 of class NSCFBoolean autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x317d829 0x318231c 0x31818f1 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.438 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3208ac4 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x318235c 0x318191a 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.441 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3208ab4 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x318239c 0x318193b 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.445 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x1c8c600 of class NSCFBoolean autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x317d829 0x31823dc 0x318195c 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.446 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x1c8c600 of class NSCFBoolean autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x317d829 0x318241c 0x3181985 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.504 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x1c8c600 of class NSCFBoolean autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x317d829 0x318245c 0x31819ae 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.507 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3208af4 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317eaaa 0x318249c 0x31819d7 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.508 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3208b04 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317eaaa 0x31824dc 0x3181a5f 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.509 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3208b04 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317eaaa 0x318251c 0x3181ae7 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.510 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x1c8c600 of class NSCFBoolean autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x317d829 0x318255c 0x3181b65 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.511 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x39222a0 of class NSCFNumber autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x318259c 0x3181b8e 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.512 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x1c8c600 of class NSCFBoolean autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x317d829 0x318273c 0x31826f2 0x3181c09 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.513 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x1c8c608 of class NSCFBoolean autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x317d829 0x3182819 0x3181c32 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.518 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x1c8c600 of class NSCFBoolean autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x317d829 0x318285c 0x3181c5b 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.545 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x1c8c608 of class NSCFBoolean autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x317d829 0x318289c 0x3181c84 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.546 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3208a24 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x1f4ba 0x31828f1 0x3181cad 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.547 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3208a34 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x1f4ba 0x3182981 0x3181cfb 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.562 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x1c8c608 of class NSCFBoolean autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x317d829 0x31829bc 0x3181d13 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.568 UpWrite[69558:207] web view load complete........... 
2010-07-20 07:36:11.569 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x39bc350 of class NSCFNumber autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x3182a41 0x31829fc 0x3181d40 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.571 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3998c20 of class NSCFNumber autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x3182abc 0x3181d5b 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.572 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x39a2400 of class NSCFNumber autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x3182a41 0x3182afc 0x3181d83 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.574 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x1c8c608 of class NSCFBoolean autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x317d829 0x3182b3c 0x3181dd4 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.577 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x1c8c608 of class NSCFBoolean autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x317d829 0x3182b7c 0x3181dfd 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.578 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x1c8c600 of class NSCFBoolean autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x317d871 0x317d829 0x3182bbc 0x3181e26 0x317df98 0x317db57 0x317da7c 0x317da06 0x407ed6 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.579 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3baaaf0 of class WAKClipView autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x25a6577 0x3183035 0x254c1ec 0x254c1bc 0x254c1bc 0x254c1bc 0x254c1bc 0x25a638d 0x400b40 0x407f28 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.580 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3903f60 of class UIDefaultWebViewInteractionDelegate autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x400c4a 0x407f28 0x414caf 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.589 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3907a70 of class NSCFNumber autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x4004d0 0x40028c 0x414ccd 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.590 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x398db50 of class NSCFDictionary autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x1bd20fc 0x4004f0 0x40028c 0x414ccd 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.591 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x398db90 of class NSConcreteNotification autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x400520 0x40028c 0x414ccd 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.598 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x39bc350 of class NSCFNumber autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x317d958 0x3182a41 0x31905eb 0x31905a3 0x415255 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.603 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x394db40 of class NSPathStore2 autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1e0d0 0x3e18f 0x3e0da 0x31c3242 0x415295 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.604 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x39519d0 of class NSCFString autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x4152c6 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.605 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3b5ffa0 of class NSConcreteValue autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x2b0783 0x4164c5 0x415310 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.606 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3bdeeb0 of class NSCFNumber autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x41653b 0x415310 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.607 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3bb8740 of class NSCFNumber autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x407587 0x3fff35 0x415333 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.608 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3b54830 of class NSCFNumber autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x4075c1 0x3fff35 0x415333 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.609 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3b9dc90 of class WebBackForwardList autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x3186be1 0x407610 0x3fff35 0x415333 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.610 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3bf8e80 of class NSCFNumber autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x4076f4 0x3fff35 0x415333 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.611 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3b10890 of class NSInvocation autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x25adf33 0x2be69c8 0x25adebb 0x25c2ec8 0x25c2d64 0x25c298b 0x25c290e 0x25c28db 0x25b2ae4 0x25de5b7 0x3190346 0x31901c4 0x3fff35 0x415333 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.612 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3b57c30 of class NSInvocation autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x1bee4b7 0x1bca6c2 0x3187df3 0x25b292a 0x25de5b7 0x3190346 0x31901c4 0x3fff35 0x415333 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.613 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3b53730 of class NSInvocation autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x25adf33 0x31d0114 0x3187e51 0x25c52dd 0x25b298d 0x25de5b7 0x3190346 0x31901c4 0x3fff35 0x415333 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.614 UpWrite[69558:440f] *** _NSAutoreleaseNoPool(): Object 0x3bf8590 of class NSInvocation autoreleased with no pool in place - just leaking 
Stack: (0xbb6bf 0x1ce62 0x1bee4b7 0x1bca6c2 0x3187e80 0x25c52dd 0x25b298d 0x25de5b7 0x3190346 0x31901c4 0x3fff35 0x415333 0x415bed 0x5fb5 0x22f7d 0x22b18 0x91f8f81d 0x91f8f6a2) 
2010-07-20 07:36:11.624 UpWrite[69558:440f] bool _WebTryThreadLock(bool), 0x3b108f0: 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... 
+0

이 오류가 발생한 코드를 표시하거나 알려주십시오. 두 번째 스레드에서 UIKit을 호출 한 결과입니다. –

+1

대부분 자동 스레드 풀을 만들지 않고 추가 스레드를 만들었을 가능성이 큽니다. –

답변

5

당신은, NSAutoreleasePool의 인스턴스가 누락되었습니다.

은 간단하게 만들고, 방법의 끝에 놓습니다 :

NSAutoreleasePool * pool = [ [ NSAutoreleasePool alloc ] init ]; 
/* your code... */ 
[ pool release ]; 

NSAutoreleasePool은 'autorelease'메시지가 전송되는 객체를 해제 할 책임이있다.
편의 생성자를 사용할 때 객체는 자동으로 릴리즈됩니다. 수영장이 없으면 물체가 풀리지 않습니다.

풀은 주 스레드에 있지만 다른 스레드에서 실행되는 메서드의 경우 풀을 수동으로 만들어야합니다.

동일한 스레드에서 NSAutoreleasePool의 인스턴스를 둘 이상 가질 수 있습니다. 긴 유지주기를 피하는 것이 때때로 유용합니다.

+0

감사합니다. iwilll이 (가)이 문제를 해결합니다. –

1

auto-release pool이없는 일부 개체가 자동으로 해제되기 때문에 충돌이 발생합니다.
자동 릴리스 풀은 자동 전송 메시지가 전송 된 개체를 보유하고있는 개체이며 드레인 메시지를 받으면 해제합니다.
코코아는 항상 자동 복구 풀을 사용할 것으로 예상합니다.

자동 풀이없는 이유는 더 많은 컨텍스트가 없으면 말하기 어렵습니다.

앱이 시작되면 main.m에 자동 풀이 생성됩니다. 아마이 코드를 수정했을거야?
또는 새 스레드를 만들었지 만 자동 릴리스 풀을 만들지 않았습니다.

어쨌든, 여기에 하나를 만드는 방법입니다 : 여기에 다른 사회 구성원이 이미 언급 한 것처럼

NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 
// Your code goes here 
[pool release]; 
1

첫 번째 문제는 할당 또는 "그것을 포장의"NSAutoreleasePool없이 스레드를 실행하고 있는지,있다. 하지만 내가 가진 주요 문제는 사용자 인터페이스가 할당 된 스레드와 다른 스레드에서 화면에 무언가를 그려 내려한다는 것입니다.

일부 UI 요소를 조작하는 메시지는 다른 스레드에서 호출하지 마십시오. 그 이유는 그래픽 버퍼와 다른 적절한 메모리가 스레드 안전하지 않기 때문입니다. 그렇게하면 정의되지 않은 동작, 어설 션 오류 또는 충돌 만 발생합니다.업데이트해야하는 경우 다른 스레드에서 모든 UI 요소는

[objectToUpdate performSelectorOnMainThread:withObject:waitUntilDone:] 

를 호출하거나 어떤 동기화 메커니즘을 사용하여 해당 runloop에 메시지를 넣어. 위의 메시지는 메시지를 주 스레드의 runloop 큐에 넣습니다. runloop이 다음 번에 계속되지만 올바른 스레드에서 실행될 때 실행됩니다. 전제 조건은 확실히 메인 트레드에서 UI 요소를 초기화 한 것입니다 (모든 응용 프로그램의 99 %의 경우). 그렇지 않은 경우

[objectToUpdate performSelector:onThread:withObject:waitUntilDone:] 

메시지를 다른 스레드에 보낼 수 있습니다.

관련 문제