问题
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