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

本文总结了Silverlight程序中常见的内存泄露问题及解决方案,包括动态添加和移除图片时的内存泄露现象及其解决方法,以及Silverlight 4中高内存使用导致页面导航崩溃的bug。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最近在找一些关于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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值