disable GC in AS3

ε祈祈猫儿з 提交于 2019-12-12 04:07:47

问题


I met a strange problem in AS3 and thought the problem may be caused by the GC, can I disable GC explicitly in AS3?

Thanks. Bin


回答1:


i dont think that there is a reference to garbage collection in the program, however you can use the "bugs" in the system to prevent things being cleaned up. if you make a variable that references the object you want to keep safe for example.

why do you think that GC is your problem? it should only take effect when all alues are null, nothing references the object or if it isnt used actively in your code for quite a while. usually the problem is with the lack of gc.




回答2:


No you cannot disable GC.

You have not told us why you think GC is your problem, but that's almost certainly not the case.



来源:https://stackoverflow.com/questions/2553928/disable-gc-in-as3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!