0

This is the trace of my app,when I updated my device to 2.2.

any idea to get rid of this leak? because I think that's the culprit who keep crashing my application.
This is trace when I run my application in os2.2,see the image which show the part which might be generating leak,and if you can give me some hints to resolve it, will be greatly appreciated.

alt text http://origindata.wapfly.com.au/extra/Picture%204.png

alt text http://origindata.wapfly.com.au/extra/Picture%203.png This is trace when I run my application in os2.1.it's very wired issue. alt text http://origindata.wapfly.com.au/extra/Picture%205.png

4

2 回答 2

1

如果不访问代码,该跟踪就毫无意义。我的建议是下载并安装 Clang 静态分析器并针对它运行代码以确定泄漏的位置。它可以在http://clang.llvm.org/StaticAnalysis.html找到- 要使用它,请将 .tar.gz 文件的内容复制到 /usr/bin 然后 cd 到您的 Xcode 项目并运行scan-build xcodebuild. 此时,您将获得指示您复制和粘贴类似于scan-view /tmp/logs/... That 的行的输出,这应该会给您一些指示。

于 2008-12-06T07:06:32.030 回答
0

您需要点击 Instruments 右上角的“查看”按钮并选择“Extended Detail”,然后点击上面选择的行项目,然后点击 Extended Details 右侧栏中的详细信息,它将打开XCode 中出错的代码行

于 2010-01-29T20:55:21.467 回答