Apple的示例应用程序TopSongs泄漏26次 [英] Apple's Sample App TopSongs has 26 Leaks

查看:51
本文介绍了Apple的示例应用程序TopSongs泄漏26次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我一直在为客户端构建一个应用程序,其中一部分使用Apple的TopSongs示例应用程序在另一个线程上下载数据.我终于做了足够的工作来开始测试该零件,发现> 1000个泄漏!!!仔细检查泄漏,使我检查TopSongs是否泄漏,因为泄漏报告中没有我的方法.运行TopSongs返回了26个泄漏.不太确定如何修复它们,或者它们是否属于Apple某些库的一部分.

Hey all, I've been building an app for a client and part of it uses Apple's TopSongs sample app to download data on another thread. I finally got enough done to start testing that part and found >1000 leaks!!! A closer look at the leaks made me check TopSongs for leaks, since none of the my methods were in leaks report. Running TopSongs returned 26 leaks. Not quite sure how to fix them, or if they are part of some library from Apple.

我敢打赌,您问它是否有26个,为什么您有> 1000个?好吧,我使用他们的样本对Web服务进行了大约48次调用,以获取初始安装所需的所有信息(48次调用x 26次泄漏= 1248次泄漏!).之后,它将至少拨打12次电话+ 4次以检查有关该应用程序其他部分的更新信息.对此无能为力,不能打一个电话,或者打个电话少,请不要对此部分发表评论.我看到人们回答的帖子并不一定回答用户最初发布的问题,在这种情况下,是否有人试图修补泄漏(如果它们是可修补的),或者这是Apple库中的错误?

I bet you're asking if it has 26, why do you have >1000? Well, I use their sample to make roughly 48 calls to webservices to get all the information needed on initial install (48 calls x 26 leaks = 1248 leaks!!). Later it makes at least 12 calls + 4 to check for updated information on other sections of the app. Can't do a thing about it, can't make one call, or less calls, please don't comment about this part. I seen people respond to posts that aren't necessarily answering the question the user originally posted, which in this case is has anyone tried patching up the leaks, if they are patchable, or is this a bug in Apple's libraries?

非常感谢.

推荐答案

您可以在此处找到TopSongs的固定版本: http://www.bigbluebrains.com/index.php/2010/08/16/iphone-topsongs-sample-code-memory-leak-fix/

You can find the fixed version of the TopSongs here: http://www.bigbluebrains.com/index.php/2010/08/16/iphone-topsongs-sample-code-memory-leak-fix/

这篇关于Apple的示例应用程序TopSongs泄漏26次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆