WinRT是否有垃圾收集? [英] Does WinRT have Garbage Collection?

查看:131
本文介绍了WinRT是否有垃圾收集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WinRT有垃圾收集吗?

或者它是否像COM一样进行引用计数?

解决方案

我发现本文,它引用了微软的 Martyn Lovell


对于内存管理,WinRT对象的引用类似于COM;对于避免循环的引用,引用的是


显然这是在他在WinRT内部讲话中提到的建立约定


Does WinRT have Garbage Collection?

Or does it do reference counting as does COM?

解决方案

I found this article, which cites Microsoft's Martyn Lovell:

"WinRT objects are reference counted like COM for memory management, with weak references to avoid circularity."

Apparently this was mentioned at his talk on WinRT internals at the BUILD convention.

这篇关于WinRT是否有垃圾收集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆