gpt4 book ai didi

iphone - 错误,Putpkt 写入失败

转载 作者:行者123 更新时间:2023-12-03 18:41:26 24 4
gpt4 key购买 nike

大家好,我正在表格 View 单元格中显示远程图像。当我滚动图像、删除其中一个并重新加载它们时,我的应用程序退出并显示此警告消息。

 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 Cell 图像的代码是

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *celltype=@"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];

}

最佳答案

每当我收到此错误时,重新启动 Xcode 和我的设备即可解决该错误。

关于iphone - 错误,Putpkt 写入失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4720980/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com