微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Silverlight - 已知的一些bug (内存泄露)和解决办法

最近在找一些关于Silverlight 程序内存泄露的问题。找到一篇2008年10月的blog ,里面列举了一些已知的bug和修补办法,不确定这些bug在新版本中是否被修复了。其中果然有内存泄露相关的bug....

 

Memory Leak when you Dynamically add and remove Images


Workaround: When dynamically adding or removing BitmapImages from an application (a.k.a. adding/removing from the tree),you should set Image.source = null before removing the Image element from the tree. This will make the BitmapImage eligible for garbage collection.
Bug Status: Active bug. *

 

ImageSource and ImageBrush events can cause a memory leak

 

搜索Microsoft Connect 网站又找到一个,Silverlight 4中的关于内存的bug:

 

Silverlight 4: High memory usage results in crash when navigating away from the page

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐