Clean up a collection of BitmapSource

寵の児 提交于 2019-12-14 03:19:13

问题


i have a collection of BitmapSource that are created by setting its StreamSource property to a MemoryStream of byte array. How do i remove them from memory after using them?

thanks!


回答1:


Just clear your references to them, the garbage collector will take care of reclaiming the memory.



来源:https://stackoverflow.com/questions/11950081/clean-up-a-collection-of-bitmapsource

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!