使用Xamarin Ios中的导航控制器在视图中弹出内存泄漏。 [英] Memory leaks in popover the view using the navigation controller in Xamarin Ios.

查看:67
本文介绍了使用Xamarin Ios中的导航控制器在视图中弹出内存泄漏。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 


当我们在导航视图控制器中弹出视图控制器时,我们会遇到大量内存泄漏并且内存未释放。


我是否需要在某些地方处置物品,请您放心。我知道这个过程以及如何解决这个问题 


参考链接。


https://bugzilla.xamarin.com/show_bug.cgi?id=21995


解决方案

嗨SrinivasaRao Ladi,


谢谢你的支持张贴。


由于这个问题与Xamarin有关,它有自己的论坛,我找到了一个类似问题的帖子,下面的答案可能有所帮助:


"在加载屏幕时拍摄快照。与当前屏幕交互。每次互动后拍摄快照。比较快照并查找在交互完成后应该处理的已分配对象。如果你找到了
的东西,试着解决它并重复这些步骤。如果物体不在那里,那么你解决了泄漏问题。仪器也是证明你解决了泄漏问题的好工具。在与屏幕交互完成后,应用程序的内存消耗应该会下降。
重复每个屏幕的步骤。这需要时间,有时是一点点尝试和错误。"


参考链接:


https://forums.xamarin.com/discussion/29612/how-to-find-memory-leaks-in -xamarin


要获得对此类问题的更多专业支持,您可以在那里打开一个主题。


您的理解与合作将不胜感激。


祝你有愉快的一天:)


 


祝你好运,


Fletcher







Hi 

We are getting lot of memory leaks and memory is not releasing when we pop the view controller in navigation view controller .

Do i need to dispose object in some where could you please let . me know the process and how i can over come this issue 

Reference link.

https://bugzilla.xamarin.com/show_bug.cgi?id=21995

解决方案

Hi SrinivasaRao Ladi,

Thanks for your posting.

As this issue is related to Xamarin which has its own forum , and I found a thread with similar issue and the answer below might help:

"Take a snapshot when you load the screen. Interact with the current screen. After each interaction take a snapshot. Compare the snapshots and look for allocated objects that should be disposed after the interaction finished. If you found something try to solve it and repeat the steps. If the objects aren't there anymore, then you solved a leak. Instrument is also a good tool to prove you solved the leak. The memory consumption of you app should go down after the interaction with the screen finished. Repeat the steps for each screen. It takes time and is sometimes a little bit of try and error."

Reference link:

https://forums.xamarin.com/discussion/29612/how-to-find-memory-leaks-in-xamarin

To get more professional support to this similar issue, you could open a thread there.

Your understanding and cooperation will be grateful.

Have a nice day:)

 

Best regards,

Fletcher


这篇关于使用Xamarin Ios中的导航控制器在视图中弹出内存泄漏。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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