泄漏与ActionBarSherlock内存 [英] Leaking memory with ActionBarSherlock

查看:124
本文介绍了泄漏与ActionBarSherlock内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

电话,整个活动的每次旋转,与ViewPager,所有的片段,列表视图等后不GCed。我在30多岁的roations和MAT因为OutOfMemoryError错误的诉说,告诉我,我有列表视图的30出头的实例。

After each rotation of phone, whole Activity, with the ViewPager, all Fragments, ListViews etc are not GCed. I can tell because of OutOfMemoryError after 30-something roations and from MAT, which tells me I have 30-something instances of ListViews.

摆脱几乎所有在我的应用程序和离开ActionBarSherlock后,事实证明,这是一个负责泄漏。

After getting rid of nearly everything in my app and leaving ActionBarSherlock, it turns out, that it's the one responsible for leak.

我调试的欲望2.3.7

I'm debugging on 2.3.7 Desire.

是否与ABS库有问题?

Is there a problem with ABS library?

推荐答案

没有没有!

希望有人能向我解释,但很显然,当你从你的设备菜单,而不是从调试的角度运行你的应用程序,泄漏消失。

Hope someone can explain it to me, but apparently, when you run your app from your device menu, not from debug perspective, the leak disappears.

有关详细信息,请查看这个封闭的问题: https://github.com/JakeWharton/ ActionBarSherlock /问题/ 413

For more details, check out this closed issue: https://github.com/JakeWharton/ActionBarSherlock/issues/413

和感谢杰克为一个伟大的图书馆!)

And thanks Jake for a great library!:)

这篇关于泄漏与ActionBarSherlock内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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