询问者
我该何时销毁内存呢

问题
全部回复
-
Hi,
managed code语言的话因为已经有了垃圾回收系统所以不需要手动的回收内存。
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
Hi,
你使用的是标准库的函数开内存的话那么这段内存需要你手动的进行管理,你可以使用CoreWindow.Activated事件来捕获程序切换的事件。
不过在VS中调试的程序都不会自动的进入Suspend状态,可能是这样所以捕捉不到。
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.