我有一个使用多个BitmapImage
的Windows通用应用程序。我曾经Bitmap
或using
包裹Dispose
s(在Winforms中),但我发现BitmapImage
没有Dispose
。 t SUM(table.column2) as 5thElement
方法。有没有办法在等待GC这样做之前释放他们的资源?
答案 0 :(得分:0)
这是一个很好的解决方案:Memory consumption of BitmapImage/Image control in Windows Phone 8。它就像是Dispose
BitmapImage
”方法
是的,GC.Collect()是好方法..