AS3:过大,垃圾收集? [英] AS3: Too Large to Garbage Collect?

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

问题描述

我的工作已经形成一个明显的内存泄漏Flash游戏。我做我应该做的GC;删除所有引用的对象,废除它,删除所有监听器(或使用弱听众);但泄漏仍在present。

I'm working on a flash game that has developed an obvious memory leak. I do what I'm supposed to do with GC; remove all references to the object, nullify it, remove all listeners (or use weak listeners); but the leak is still present.

我过这个文章偶然发现: http://www.andymoore.ca/2010/03/motherfucking- AS3-垃圾收集/

I've stumbled across this article: http://www.andymoore.ca/2010/03/motherfucking-as3-garbage-collection/

它声称太大的对象将永远不会被垃圾收集。这一理论正好符合我的项目,因为我所有的比赛居住在创建和经常遭到破坏,一对夫妇巨大的影片剪辑的。

It claims that objects that are too large will never be garbage collected. This theory fits well with my project since all of my game resides in a couple of huge MovieClips that are created and destroyed often.

有什么好处的说法过于大对象永远不会被垃圾收集?

Is there any merit to the claim that objects that are too large will never be garbage collected?

推荐答案

您可以尝试使用 SWFWire调试看看到底是哪个不被收集的对象。

You can try using SWFWire Debugger to see exactly which objects aren't being collected.

免责声明:这是我自己的项目

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

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