我有一个Windows,它使用几个BitmapImage,我习惯于在usings或Dispose中包装Bitmaps (在Winforms中),但是我发现BitmapImage没有Dispose方法。有没有办法比等待GC更早地释放他们的资源?
发布于 2015-10-14 08:31:20
下面是一个很好的解决方案:Memory consumption of BitmapImage/Image control in Windows Phone 8。它就像BitmapImage的一个扩展‘BitmapImage’方法
是的,GC.Collect()是个好方法。
https://stackoverflow.com/questions/33108983
复制相似问题