iphone - _NSAutoreleaseNoPool 中断但没有有用的堆栈跟踪

标签 iphone objective-c

我收到消息:

*** _NSAutoreleaseNoPool(): Object 0x3f43660 of class UICFFont autoreleased with no pool in place - just leaking

我使用符号 _NSAutoreleaseNoPool 放置了一个断点,程序确实中断了,但是,堆栈跟踪没有显示我的任何代码,只有一些 UIView 和 Core Animation 层代码。

alt text http://img.skitch.com/20100614-fw7u4qtb5bprpwrkh9rdkwn3rq.png

是否有更好的方法来深入了解问题?显然有一个线程没有自动释放池,但我不知道在哪里。

谢谢。

最佳答案

您正在使用 CATiledLayer实例?这是我所知道的唯一可以从任意线程调用其 drawLayer:inContext: 方法的图层类型:

As more data is required by the renderer, the layer's drawLayer:inContext: method is called on one or more background threads to supply the drawing operations to fill in one tile of data. The clip bounds and CTM of the drawing context can be used to determine the bounds and resolution of the tile being requested.

关于iphone - _NSAutoreleaseNoPool 中断但没有有用的堆栈跟踪,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3040939/

相关文章:

iOS 多个音频振荡器

iphone - jquery 动画 --> css -webkit-transform : translate3d

安卓和苹果手机。统一代码库可能吗?

iphone - 如何在 iOS 中编写小型(套接字)服务器

iphone - 什么是 iPad 设备上交互式图书的最佳解决方案?

iphone - 如何像 [self Method_Name]; 一样使用 self 调用方法;当方法名称很长时 Like -(void)imagePickerController : (UIImagePickerController *)

ios - 动态证书固定

javascript - 是否只有在尚未安装应用程序的情况下才能为移动设备浏览器启动弹出窗口?

php - iOS 向 PHP 发送数据

objective-c - 这是什么 cocoa 类?