안녕하십니까 저는 tableview cell에 원격 이미지를 표시하고 있습니다. 이미지를 스크롤하면서 그 중 하나를 삭제하고 다시로드하면 내 애플리케이션에서이 경고 메시지를 표시하면서 종료되었습니다.오류, 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':
의 TableView 셀 이미지 코드
- (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];
}
후에있어서 난 테이블의 데이터를 다시로드 호출
이 오류가 발생했을 수있는 일부 소스 코드를 표시 할 수 있습니까 – Robin
그 일이 있습니다. serverview.See에서 이미지를 업데이트 한 후 저와 함께 한 번만 업데이트 된 코드를 확인하십시오. 그러나이 코드로 인해 발생하지는 않습니다. 코드는 괜찮습니다. 다른 것을 잊고 있습니다 – Sabby
게시 한 코드 중 @sabby가 잘못된 것 같습니다. '[SnapItParsing sharedInstance]'객체에 대한 호출 만 보이는 것이 아닙니다. 그 물건에 무슨 일이 일어나고있는거야? –