简体   繁体   English

切换选项卡时图像文件 memory 使用量增加

[英]Image file memory usage grows when switching tabs

I'm working with a .net application that allows users to load an image on one tab and then switch to another tab to make notes.我正在使用 .net 应用程序,该应用程序允许用户在一个选项卡上加载图像,然后切换到另一个选项卡来做笔记。 The idea is to not clear the image when navigating away from the tab so that users can toggle back and forth with ease.这个想法是在离开选项卡时不清除图像,以便用户可以轻松地来回切换。 The problem I am running into is when switching back to the tab that contains the image, virtual and physical memory grows as if it's opening the image again.我遇到的问题是当切换回包含图像的选项卡时,虚拟和物理 memory 会像再次打开图像一样增长。 GC does get executed after a period of time however there are users that will switch between tabs several times in the matter of a minute or 2. Without clearing the image, is there any way to prevent the memory usage from growing? GC 确实会在一段时间后执行,但是有些用户会在一分钟或 2 分钟内多次切换选项卡。在不清除图像的情况下,有什么方法可以防止 memory 的使用量增长?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM