2011-01-18 20 views
6

皆さん、私は画像をスクロールして1つを削除して再読み込みしましたが、この警告メッセージを表示して終了しました。エラー、Putpkt書き込みに失敗しました

Ignoring packet error, continuing... 
    gdb stack trace at 'putpkt: write failed': 

0 gdb-arm-apple-darwin    

0x0019026bのremote_backtrace_self + 54

recent remote packets prior to 'putpkt: write failed': 

テーブルビューの細胞画像のコードは

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 
{ 
    static NSString *[email protected]"cell"; 
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:celltype]; 

    if (cell == nil) 
    { 
     cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"] autorelease]; 
     cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; 
     cell.backgroundColor=[UIColor clearColor]; 
     //cell.textLabel.text=[[resultarray objectAtIndex:indexPath.row] valueForKey:@"Service"]; 

     /*UIImage *indicatorImage = [UIImage imageNamed:@"indicator.png"]; 
     cell.accessoryView = 
     [[[UIImageView alloc] 
     initWithImage:indicatorImage] 
     autorelease];*/ 
     /*NSThread *thread=[[NSThread alloc]initWithTarget:self selector:@selector() object:nil]; 
     [thread setStackSize:44]; 
     [thread start];*/ 

     cell.backgroundView=[[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"cell.png"]]autorelease]; 
     // [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"back.png"]] autorelease]; 

     cell.selectionStyle=UITableViewCellSelectionStyleNone; 



    } 


    UIImageView *imageView= [[UIImageView alloc] initWithFrame:CGRectMake(19, 15, 75, 68)]; 
    imageView.contentMode = UIViewContentModeScaleToFill; 

     frameImagePath= [NSString stringWithFormat:@"http://XYZplayz.com/snapit/products/%@",[[productInfoArray objectAtIndex:indexPath.row]valueForKey:@"Image"]]; 

    [imageView setImageWithURL:[NSURL URLWithString:frameImagePath]placeholderImage:[UIImage imageNamed:@"no_image.png"]]; 

    [cell.contentView addSubview:imageView]; 
    [imageView release]; 
    imageView = nil; 
    return cell; 
} 

と私は削除した後、テーブル内のデータを再ロードするために呼び出す方法は

-(void)viewWillAppear:(BOOL)animated 
    { 

     spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray]; 
     spinner.center = self.view.center; 
     [self.view addSubview:spinner]; 
     [spinner startAnimating]; 
     [[SnapItParsing sharedInstance]assignSender:self]; 
     [[SnapItParsing sharedInstance]startParsingForShowProducts:appDel.userIdString]; 

    } 
あります
+0

あなたはserver.Seeからtableviewcellに更新されたコードを画像を更新した後、私と一緒に一度起こったこのエラー – Robin

+0

の原因となったかもしれないいくつかのソースコードを表示することができますが、私は、これは、このコードのために何が起こっているとは思いませんコードは問題ありません。私が忘れている何かがあります – Sabby

+0

あなたが投稿したコードのどれもが間違っているようです。 '[SnapItParsing sharedInstance]'オブジェクトへの呼び出しは、外見が唯一のものです。そのオブジェクトでは何が起こっていますか? –

答えて

14

このエラーが発生すると、Xcodeとデバイスを再起動するとエラーが解決されます。

+0

私は同じことをやったことがありますが、問題は解決しました。あなたの返信....... – Sabby

4

電話をオフにして問題を解決しなければならなかった。再起動してxcodeをクリーンスタートさせると、最終的には動作しました。

関連する問題