-
Notifications
You must be signed in to change notification settings - Fork 827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
好像没有看到realm.close #38
Comments
@palmyer Hello,按照我个人的理解,目前整个应用共享一个Realm的实例,它是Application级别的,没有单个页面级别的Realm实例,应该不会导致内存泄漏吧, |
感谢回复,realmhelper我差不多也是这么写的,
RealmHelper代码
然后我在您的代码中设置页面添加了delete的操作也出现了这个crash
说明有4个没关闭(之前页面随便点点); 每个fragment写单独realm太分散,不知道怎么写优雅点 |
@palmyer Hi,刚把应用更新到1.3.0版,把AppComponent不是单例的问题修复了,我在设置页面又测了下这个 |
realm文档看到说使用完realm后需要close,否则可能内存泄漏
代码中貌似没看到
我的项目中需要删除数据库操作,Realm.deleteRealm(configuration)
总是提示先close,所以关注了下这个问题
The text was updated successfully, but these errors were encountered: